Results 1 to 3 of 3

Thread: Possible to get value of checkbox in form using hyperlink?

  1. #1
    Join Date
    Sep 2004
    Location
    West Palm Beach, FL, USA
    Posts
    13

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    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

  3. #3
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

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

Similar Threads

  1. Replies: 3
    Last Post: Jun 8th, 2010, 03:27 AM
  2. Replies: 6
    Last Post: Sep 22nd, 2006, 09:08 AM
  3. Replies: 9
    Last Post: May 4th, 2006, 09:53 AM
  4. form transition as hyperlink
    By agreif in forum Web Flow
    Replies: 1
    Last Post: Jul 23rd, 2005, 07:23 AM
  5. Replies: 5
    Last Post: Apr 27th, 2005, 07:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •