Tuesday, 10 September 2013

Submit the form im currently in

Submit the form im currently in

Jquery allows to submit a form by:
$('#target').submit();
Is there a way to know the form the trigger button is currently in?
What I need is to simulate the behavior of the normal submit button
<button type="submit">Send</input>
By
<button type="button"
onclick="jquery_function_that_submits_the_current_form">Send</input>

No comments:

Post a Comment