Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How can we submit a form without a submit button?

user-image
Question added by Deleted user
Date Posted: 2013/08/03
Deepak Mishra
by Deepak Mishra , Lead Developer , Chevron

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

Sandeep Vadgama
by 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
by 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