How can I get the value of a checkbox without using an input button like a submit button or image button? I want to use a regular hyperlink to submit my form. Is that possible?
--JS
Printable View
How can I get the value of a checkbox without using an input button like a submit button or image button? I want to use a regular hyperlink to submit my form. Is that possible?
--JS
Post the form using javascript:
<a onclick="javascript:document['formId'].submit()">SUBMIT</a>
I'm not sure about the exact syntax here, but this should more or less do the trick.
Alef
I think the form below is more usual:
Code:<a href="javascript:document['formId'].submit()">SUBMIT</a>