Community Forums 

Main Content

Re:HTML form using link instead of button?

    Apr 18 2012 13:07:54

    #1

    anon

    Join date : 2008-09-18      Posts : 488

    Try this:
    <a href="javascript:void(0);" onclick="javascript: this.form.submit();">Buy now</a>

    You may want to put your input submit (button) inside a <noscript> tag in case users don't have javascript enabled.