Check, using jQuery, if an element is 'display:none' or block on click

后端 未结 7 1444
我在风中等你
我在风中等你 2020-11-28 17:56

I want to check and sort elements that are hidden. Is it possible to find all elements with attribute display and value none?

7条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 18:24

    Use this condition:

    if (jQuery(".profile-page-cont").css('display') == 'block'){
        // Condition 
    }
    

提交回复
热议问题