Advertisement
Virajsinh

jQuery Form Validation Reset

Jun 24th, 2024 (edited)
730
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.41 KB | Source Code | 0 0
  1. <script type="text/javascript">
  2.  
  3. var form = $("#register_form");
  4. form.validate().resetForm(); // clear out the validation errors
  5. form[0].reset(); // clear out the form data
  6. -------------------------------------------------------
  7. $("#register_form").validate().resetForm();
  8. -------------------------------------------------------
  9. var validator = $( "#myform" ).validate();
  10. validator.resetForm();
  11.  
  12. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement