Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery submit form [duplicate]

How can I submit a specific form using the follow code (example the id of my form is #form1).

$(".nextbutton").click(function() { submit; }); 
like image 319
user342391 Avatar asked Sep 20 '10 13:09

user342391


People also ask

How to prevent double submission of form?

To disable just the submit button(s), you could do this: $('button[type=submit], input[type=submit]'). prop('disabled',true);

How do I stop a form from submitting?

1.1 To disable a submit button, you just need to add a disabled attribute to the submit button. $("#btnSubmit"). attr("disabled", true); 1.2 To enable a disabled button, set the disabled attribute to false, or remove the disabled attribute.


1 Answers

Try this lets say your form id is formID

$(".nextbutton").click(function() { $("form#formID").submit(); }); 
like image 92
Pramendra Gupta Avatar answered Sep 23 '22 00:09

Pramendra Gupta