jQuery validation select2
I validate my form with jQuery validation plugin. I change style dropdown menu with jQuery select2 plugin. If validate callback throws an error my input shows/adds a class error box (red border). Otherwise it shows/adds a class success box (green border). This worked in normal input but won't work in select2. When I choose any value for select box, the error box (red border) does not hide/switch to success box. select2 worked after click submit button. JS: $('form').validate({ rules: { firstname: { minlength: 3, maxlength: 15, required: true }, lastname: { minlength: 3, maxlength: 15, required
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.