Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

why does my page reloads on form submission

//jquery method //
//preventDefault() prevents the submit button
//from performing its default task like page reload  
  $('#form').submit(function (e) {
      e.preventDefault();
  });
 
PREVIOUS NEXT
Tagged: #page #reloads #form #submission
ADD COMMENT
Topic
Name
4+1 =