0
4

3 回答 3

2

Use the :visible pseudo selector.

ie. $(".warning-label:visible")

于 2013-10-31T15:51:02.197 回答
2

Just use:

$("div.warning-label:visible")
于 2013-10-31T15:51:05.253 回答
1

You can use jQuery .not() to do just what you're looking for:

$(".warning-label").not(':hidden')

Here's an example:

http://jsfiddle.net/Aq3X5/1/

于 2013-10-31T15:53:56.217 回答