I have two forms.
consider the HTML:
....
The event handler can be bound to the form:
$('#target').submit(function() {
alert('Handler for .submit() called.');
return false;
});
Click function:
$('#other').click(function() {
$('#target').submit();
});
Here is the link have a look: How can I submit form on button click when using preventDefault()?