How do i test if something is hidden with jQuery?
本问题已经有最佳答案,请猛点这里访问。
Possible Duplicate:
Testing if something is hidden with jQuery
在jquery中,假设您有一个隐藏和显示的元素,使用
尝试
1  | $("some-selector").is(':hidden');  | 
或
1  | $("some-selector").is(':visible');  | 
这是
1 2  | $('.target').is(':hidden') // returns true if the element is hidden $('.target').is(':visible') // returns true if the element is visible  |