is there any way to use custom tailwind classes in JavaScript?

  Kiến thức lập trình

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

manka manka is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT