Instead of a submit button I have a link:
<form>
<a href="#"> submit </a>
</form>
Can I make it submit the form when it is clicked?
Instead of a submit button I have a link:
<form>
<a href="#"> submit </a>
</form>
Can I make it submit the form when it is clicked?
It works perfect in my case.
you can use it in function also like,
Set "theForm" as your form ID. It's done.
this works well without any special function needed. Much easier to write with php as well.
<input onclick="this.form.submit()"/>