this isn't working:
function clear() {
if (ed1.checked = "true") {
document.f4.ed2.checked = "false";
document.f4.ed3.checked = "false";
}
}
I have 3 radio buttons and the first on ed1 when the user selects it must clear the other two if they are selected, ed2 and ed3 have multiple questions so they are part of a set like so checking ed1 will unselect ed2 and ed3 and selecting ed2 or ed3 will unselect ed1, i'm calling clear from onsubmit, if possible can the function be total contained in the onsubmit call like onSubmit = "javascript:clear(.... If not thats kool.
function clear() {
if (ed1.checked = "true") {
document.f4.ed2.checked = "false";
document.f4.ed3.checked = "false";
}
}
I have 3 radio buttons and the first on ed1 when the user selects it must clear the other two if they are selected, ed2 and ed3 have multiple questions so they are part of a set like so checking ed1 will unselect ed2 and ed3 and selecting ed2 or ed3 will unselect ed1, i'm calling clear from onsubmit, if possible can the function be total contained in the onsubmit call like onSubmit = "javascript:clear(.... If not thats kool.