Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery submit() method</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function(){ $("form").submit(function(e){ alert("Form submitted successfully."); }); $("button").click(function(){ $("form").submit(); }); }); </script> </head> <body> <form action="#" method="get"> Name: <input type="text" name="name" /> <br /> Password: <input type="password" name="password"/> <br/> <input type="submit" name="submit"/> </form> </body> </html>
  Preview Arrow