Opened 14 years ago
Closed 13 years ago
#4771 closed bug (invalid)
validate - Error Labels not valishing in validator.resetForm()
Reported by: | bapu_prabir | Owned by: | joern |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | plugin | Version: | 1.3.2 |
Keywords: | resetForm, error labels | Cc: | |
Blocked by: | Blocking: |
Description
Hi. validator.resetForm() removing all error messages but labels coresponding to invalid inputs still has errorclass.
Following code I am using to show error labels for corresponding invalid elements.
highlight: function(element, errorClass) { $(element.form).find("label[for=" + element.id + "]").addClass(errorClass);}
I have to do following to remove errorclass from labels:
validator.resetForm();
$("#myform").find("label.error").removeClass("error"); can be included in resetForm()
I am using jQuery validation plug-in 1.5.2 with jquery
Thanks, Prabir
Change History (2)
comment:1 Changed 13 years ago by
Component: | unfilled → plugin |
---|---|
Owner: | set to joern |
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Please file plugin bugs with the appropriate author on their bug tracker.