43
rated 0 times
[
50]
[
7]
/ answers: 1 / hits: 6280
/ 11 Years ago, wed, january 15, 2014, 12:00:00
Can you test if an input element has the CSS3 :valid or :invalid pseudo-class applied to it with jQuery? I would like to test if the form element passed the CSS validation before enabling a submit button.
Things I tried already that did not work:
if($(#el).is(:valid)) {
//...
}
if($(#el:valid).length == 0) {
//...
}
$(#el).attr(valid)
More From » jquery