Skip to main content

Bug Tracker

Side navigation

#2498 closed bug (worksforme)

Opened March 13, 2008 12:40AM UTC

Closed March 19, 2008 06:43PM UTC

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:
Blocked by: Blocking:
Description
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 (1)
  • example.html (8.1 KB) - added by mrpollo March 13, 2008 12:40AM UTC.

    test scenario i used

Change History (3)

Changed March 13, 2008 07:58PM UTC by scott.gonzal comment:1

owner: → joern

Changed March 19, 2008 06:40PM UTC by joern comment:2

description: 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{{{ \ 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 \ }}}

Changed March 19, 2008 06:43PM UTC by joern comment:3

resolution: → worksforme
status: newclosed

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.