Jquery: How to check if the element has certain css class/style

前端 未结 6 658
清酒与你
清酒与你 2020-12-01 02:18

I have a div:

Is there any way to check if the certa

6条回答
  •  无人及你
    2020-12-01 03:01

    i've found one solution:

    $("#someElement")[0].className.match("test")
    

    but somehow i believe that there's a better way!

提交回复
热议问题