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">


I want to use this element in my JavaScript as


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