I want to use a tailwind class in JavaScript using querySelector()
this is my element
<div class="bg-indigo-500">
<div>
I want to use this element in my JavaScript as
document.queryselector(".mydiv")
I want to select it using a specific name
New contributor