J
Jim
I have a 2 checkboxes and a hidden field..what I want to happen is
that you can only click on 1 of these checkboxes at a time and when
you check a checkbox it will assign the hidden field "txtreferral" a
value and when you uncheck the checkbox it will set the hidden field
value back to nothing ..I have the clicking on 1 check box at a time
down but when I try to add the code to assign the value to the hidden
field I get an error in the javascript console..heres my code so far:
The two checkboxes are named txtreferral1 and txtreferral2 here is the
code for txtreferral2....
onclick="if(txtreferral1.checked)txtreferral1.checked=!this.checked;txtreferral.value="EMPS""
thanks
-Jim
that you can only click on 1 of these checkboxes at a time and when
you check a checkbox it will assign the hidden field "txtreferral" a
value and when you uncheck the checkbox it will set the hidden field
value back to nothing ..I have the clicking on 1 check box at a time
down but when I try to add the code to assign the value to the hidden
field I get an error in the javascript console..heres my code so far:
The two checkboxes are named txtreferral1 and txtreferral2 here is the
code for txtreferral2....
onclick="if(txtreferral1.checked)txtreferral1.checked=!this.checked;txtreferral.value="EMPS""
thanks
-Jim