I got an image with which links to another page using <a href="..."> <img ...> </a>.
<a href="..."> <img ...> </a>
How can I make it make a post like if it was a button <input type="submit"...>?
<input type="submit"...>
More generic approatch using JQuery library closest() and submit() buttons. Here you do not have to specify whitch form you want to submit, submits the form it is in.
<a href="#" onclick="$(this).closest('form').submit()">Submit Link</a>
1.4m articles
1.4m replys
5 comments
57.0k users