ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

How can we submit a form without a submit button?

user-image
تم إضافة السؤال من قبل مستخدم محذوف‎
تاريخ النشر: 2013/08/03
Deepak Mishra
من قبل Deepak Mishra , Lead Developer , Chevron

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

Sandeep Vadgama
من قبل 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
من قبل 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.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟