Resetting all client side validation messages with JavaScript

Hey,

got a new problem. I’m using a a dropdown (with weekdays) and two text inputs (hours and minutes) to make a user add dates via Javascript / jQuery before submitting the whole form with all the added dates. My problem is now that I want to clear all the validation messages that are being displayed (also the has-success ones) so that this part of the form is “untouched” after he added a date. Is there any way to do this? I used




$('#mydiv').find('.has-success).removeClass('has-success);



already, which does the job, but only temporarily. As soon as a new weekday is selected from the dropdown, the two text input fields are also displayed green (has-success), so I’m assuming the validation is somehow cached?

Any help?

Thanks in advance!