A lot of times in your MVC forms, you will see the need to submit a form by clicking a hyperlink.
This can be simply done using the following:
<a id="linkSearch" href="javascript:void(0);">Post Me</a>
And then in the document.ready event on the page, we can associate the form submit event as follows:
$('#linkSearch').click(function() {
$(this).parents('form').submit();
});
That’s all there is to it!




Your name
Nice. The other solutions required a “named” form. Thanks.