| hwg-languages archives | Nov 2001 | new search | results | previous | next |
if one is selected...other cantby "Teqila MAN" <teqilaman(at)poczta.wp.pl> |
|
-----------------------
Here is part of script........and the problem....at the end
-----------------------------------------
function checkChoice(whichbox) {
with (whichbox.form) {
if (whichbox.checked == false)
hiddentotal.value = eval(hiddentotal.value) - eval(whichbox.value);
else
hiddentotal.value = eval(hiddentotal.value) + eval(whichbox.value);
hiddentotal2.value = eval(hiddentotal.value)*<? print("$mnoznik");?>;
return(formatCurrency(hiddentotal.value));
}
}
The first checkbox is "Special"...i press it...
<input name=special type=checkbox value=4200 onClick="this.form.total.value=
checkChoice(this); ">
the value is send to the total counter..... next it the form are those eleme
nts :
<input name=114 type=checkbox value=4200 onClick="this.form.total.value=chec
kChoice(this); ">
<input name=222 type=checkbox value=22 onClick="this.form.total.value=checkC
hoice(this); ">
<input name=333 type=checkbox value=11 onClick="this.form.total.value=checkC
hoice(this); ">
How to make a restriction that if you selected Special checkbox you cannot p
ress the 114 and 333 ..some alert box...i cannot make this...
Very glad if someone could help me
Teqilaman
HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA