Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

preventdefault called two times

$("#search").on('submit', function (e) { // change the element selector as id selector. 
   console.log('Form submitted')
   e.preventDefault();
  e.stopImmediatePropagation();
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #preventdefault #called #times
ADD COMMENT
Topic
Name
3+7 =