Announcement Announcement Module
Collapse
No announcement yet.
Possible to get value of checkbox in form using hyperlink? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Possible to get value of checkbox in form using hyperlink?

    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

  • #2
    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

    Comment


    • #3
      I think the form below is more usual:
      Code:
      <a href="javascript&#58;document&#91;'formId'&#93;.submit&#40;&#41;">SUBMIT</a>

      Comment

      Working...
      X