jquery select all br with display:none;

后端 未结 6 803
梦毁少年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:49

    $("br").filter(function() {
      return $(this).css("display") == "none";
    })
    

    Works like a charm.

提交回复
热议问题