Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How can we submit a form without a submit button?

user-image
Question ajoutée par Utilisateur supprimé
Date de publication: 2013/08/03
Deepak Mishra
par Deepak Mishra , Lead Developer , Chevron

IDofFormtag.submit(); for example: form1.submit();

Sandeep Vadgama
par Sandeep Vadgama , Sr. Technical Lead , JUST DIAL

we can submit it with button element in html use onclick attribute for example: <input type="button" value="Send" onClick="this.form.submit">

Badr Ghatasheh
par Badr Ghatasheh , Software Engineer , bayt.com

You can use the jQuery submit(form) method, this method populates all form inputs and submits the form without the need to actually add a submit button. Check it out here: http://api.jquery.com/submit/ Just keep in mind that this needs jQuery library, and won't work if JavaScript was disabled on the client browser.

More Questions Like This