Answers for "preventdefault called two times"

0

preventdefault called two times

$("#search").on('submit', function (e) { // change the element selector as id selector. 
   console.log('Form submitted')
   e.preventDefault();
  e.stopImmediatePropagation();
});
Posted by: Guest on September-16-2021

Browse Popular Code Answers by Language