Skip to content Skip to sidebar Skip to footer

How To Stop The Form From Resetting

How to stop the form from resetting to it's default value? I've already tried the AJAX way, but it seems that there is an error to it. Even though that I have the code already, it

Solution 1:

Stop the form from submitting by using e.preventDefault();

   $("#thisisform").submit( function(e) {
      e.preventDefault(); // added code
      loadAjax();
      e.returnValue = false;
    });

Post a Comment for "How To Stop The Form From Resetting"