Possible Duplicate:
How best to make a link submit a form
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="POST">
....
<a class="button" href=""><span>Buy Now</a>
</form>
In the above code how can I use the <a> tag to process the form? I don’t want to use a submit button since most of my css code only recognized the attribute.
use jquery like:
you’ll have to include jquery for this
or plain javascript: