Bug Tracker

Modify

Ticket #2498 (closed bug: worksforme)

Opened 5 years ago

Last modified 5 years ago

Jquery Validate Plugin

Reported by: mrpollo Owned by: joern
Priority: minor Milestone: 1.2.4
Component: plugin Version: 1.2.3
Keywords: validate plugin Cc:
Blocking: Blocked by:

Description (last modified by joern) (diff)

lets see the scenario:
validate()
then set rules
rules:{} //normal stuff in here
then i go and place the messages
messages:{} // i just keep it simple
then my error stuff
errorPlacement:{}
and finally i get the success
success:{}
here starts the problem
whenever i try and submit the form
everything blank, it displays all of the error messages correctly
then lets say i had this input that required text in it, i write something in it and the success fires perfectly, but the problem is when i again delete that field the errorPlacement doesnt fire again till i press submit again, so we are left with no correct response in here

i attached my code

mrpollo@gmail.com

Attachments

example.html Download (8.1 KB) - added by mrpollo 5 years ago.
test scenario i used

Change History

Changed 5 years ago by mrpollo

test scenario i used

comment:1 Changed 5 years ago by scott.gonzal

  • Owner set to joern

comment:2 Changed 5 years ago by joern

  • Description modified (diff)

comment:3 Changed 5 years ago by joern

  • Status changed from new to closed
  • Resolution set to worksforme

errorPlacement is called only when inserting the error in the DOM the first time, never again. To add and remove classes, use highlight und unhighlight instead. See the docs for details:  http://docs.jquery.com/Plugins/Validation/validate (Options tab, scroll down to the bottom).

Please reopen the ticket if highlight/unhighlight don't help with this issue.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.