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

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

I have a div:

Is there any way to check if the certa

6条回答
  •  心在旅途
    2020-12-01 03:03

    if ($("element class or id name").css("property") == "value") {
        your code....
    }
    

提交回复
热议问题