Check if a DOM element has a specific class or attribute
In jQuery, you can check if an element has a class using the hasClass() function. The equivalent in JavaScript is classList.contains() function. In jQuery, you can check if an element has a specific attributre using the attr() function. The equivalen...
plasebo.hashnode.dev1 min read