Thursday, 23 April 2015

Remove jquery validation.js error's

Remove jquery validation.js error's in reset(btn) the  form:
======================================

$("#reset").click(function() {
  $("label.error").hide();
  $(".error").removeClass("error");
  });




Soln 2 - related to full form:
------
You want the resetForm() method:

var validator = $("#myform").validate(
   ...
   ...
);

$(".cancel").click(function() {
    validator.resetForm();
});

but not remove error msg....

No comments:

Post a Comment

React Windowing or List virtualization - React App optimization

  Windowing  or   List virtualization   is a concept of only rendering or write the visible portion in the current   “ window ”   to the   D...