开发者

How do you select the last visible element with jQuery?

I am using jQuery and I want to select the last visible element with some class e.g. 'target'

how can I开发者_StackOverflow社区 do that ?


Sorry but I didn't realize that it was this easy..

I found the answer after googling it

$('.target:visible:last');


var e = jQuery('.target:visible:last');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜