How do you do jQuery’s hasClass
with plain ol’ JavaScript? For example,
<body class="foo thatClass bar">
What’s the JavaScript way to ask if <body>
has thatClass
?
How do you do jQuery’s hasClass
with plain ol’ JavaScript? For example,
<body class="foo thatClass bar">
What’s the JavaScript way to ask if <body>
has thatClass
?