sandsgaucho
asked on
submitting form with radio button
Hi,
Is it possible to submit a form using a radio button.. I tried various events such as onclick, onselect, onkeypress etc. but keep getting a Object doesnt support this property or method error.
thnx
Is it possible to submit a form using a radio button.. I tried various events such as onclick, onselect, onkeypress etc. but keep getting a Object doesnt support this property or method error.
thnx
ASKER
el.checked returns true but am still getting the same
"Object doesnt support this property or method error"
I have temporarily resolved the problem sending the parameters along with location.href but i really need to submit the form via a radio button..
thnx
"Object doesnt support this property or method error"
I have temporarily resolved the problem sending the parameters along with location.href but i really need to submit the form via a radio button..
thnx
Thats strange...
Are you executing anyother methods, maybe form.unsubmit, that would be triggered by this call?
Are you executing anyother methods, maybe form.unsubmit, that would be triggered by this call?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yes, the last one works.. thnx!
if((el.tagName=='INPUT')&&
if(el.checked){ //make sure the radio was checked
el.form.submit(); //submit the form
}
}
}
<form>
<input type="radio" onclick="submitFormRadio(t
</form>