I'm thring to convert this code to vanilla JavaScript without jQuery:
if ($(el).is(":invalid")) {
// etc
}
How do I write this code without using jQuery?
I tried looking at youmightnotneedjquery.com , but it doesn't seem to have this use-case.