Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clear validation message dynamically for the Datepicker

 
Sam Saha
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jquery validation on Datepicker. If we don’t enter any date or a future date I am getting the validation error message with the red background in the date field. Now if we enter a date and valid date in the date field and tab off the field and click once, the validation error message does not getting clear and the red background does not go away from the date field. I want to clear the message and clear the red background dynamically when we tab off the field and click once in jquery.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Examine the classes that are placed on the field to make them look "in error". You may need to clear them yourself if the validation plugin is not playing nice with the datepicker plugin.
 
Sam Saha
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the datepicker in the field the following way:
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firstly, look at your post. Is that code formatted so that it's easy to read? You will receive faster and better help by taking the time to make your posted code well-formatted and well-indented.

Also, posting JSF markup (or any other server-side markup) in an HTML forum where most people likely don't know anything about JSF isn't the best strategy.

I hope that will help you get your question answered.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic