lting
09-22-2004, 12:59 AM
function radio(){
if(document.form.checkPayroll.checked == true){
document.form.radioPayroll.value == 1;
}
}
<input name="checkPayroll" type="checkbox" id="checkPayroll" value="1" onClick="radio();">
READ = <input name="radioPayroll" type="radio" value="1">
WRITE = <input name="radioPayroll" type="radio" value="2">
is this correct?
i want to do a function when ever i tick at the check box - checkPayroll, the radio button - radioPayroll for 'read' will be automatically checked as well ...
document.form.radioPayroll.checked == true?
if(document.form.checkPayroll.checked == true){
document.form.radioPayroll.value == 1;
}
}
<input name="checkPayroll" type="checkbox" id="checkPayroll" value="1" onClick="radio();">
READ = <input name="radioPayroll" type="radio" value="1">
WRITE = <input name="radioPayroll" type="radio" value="2">
is this correct?
i want to do a function when ever i tick at the check box - checkPayroll, the radio button - radioPayroll for 'read' will be automatically checked as well ...
document.form.radioPayroll.checked == true?