Is there a way to check for the application of the CSS3 :valid or :invalid pseudo-class on an input element using jQuery? I want to verify if the form element has passed CSS validation before allowing the submit button to be enabled.
Here are some methods I have attempted that proved unsuccessful:
if($("#el").is(":valid")) {
//...
}
if($("#el:valid").length == 0) {
//...
}
$("#el").attr("valid")