www.webdeveloper.com
Results 1 to 2 of 2

Thread: How to make <a> submit?

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    210

    How to make <a> submit?

    Code:
    <form name="declaration" action="good.htm" > 
    	<a  style="background:#CCC;" onClick="Submit();">Go to</a>
    	<input type=checkbox onClick="submit();">
    </form>
    In code above, <input>-submit is fine, but <a>-submit is not working.
    Why?

  2. #2
    Join Date
    Mar 2012
    Posts
    63
    <form name="declaration" action="good.htm" >
    <a style="background:#CCC;" onClick="document.declaration.submit();">Go to</a>
    <input type=checkbox onClick="submit();">
    </form>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles