top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How can I submit a form without using any submit button?

+1 vote
32 views
How can I submit a form without using any submit button?
posted Nov 26, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Yes.
You can submit a form with one line of JavaScript, no submit button needed:

submit using script, for example

window.onload=function() {
  document.getElementById("form1").submit(); // using ID
}

or in jQuery:

$(function() {
  $("#form1").submit(); // using ID
});
answer Nov 27, 2015 by Shivaranjini
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...