Advertisement
Evyatar12

Javascript

Jun 8th, 2015
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(form-selector).submit(function(event){
  2.  
  3.   try {
  4.      your form code
  5.   }
  6.   catch (exception){
  7.     document.write(exception);
  8.     event.preventDefault();
  9.   }
  10. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement