jquery select all br with display:none;

后端 未结 6 808
梦毁少年i
梦毁少年i 2020-12-15 07:15

How do I select an element based on its css?

I need to select a br with inline style display:none. This is not the same thing as br:hidden, because that selects elem

6条回答
  •  爱一瞬间的悲伤
    2020-12-15 07:48

    How about something like this:

    $(document).ready(function() {
      $("div:hidden").each(function() {
        if ($(this).css("display") == "none") {
            // do something
        }
      });
    });
    

提交回复
热议问题