简体   繁体   English

是否有名为invisible的属性值?

[英]Is there an property value named invisible?

Instead using of: 而是使用:

if ( ! $('#XX').is(':visible) )

Is there a value called invisible ? 是否有一个名为invisible的值? I tried that one , but doesn't work. 我尝试了那个,但不起作用。

Thanks ! 谢谢 !

There is a .not() function , that does the opposite to .is() : 有一个.not()函数 ,与 .is()相反:

.not(':visible')

http://api.jquery.com/not/ http://api.jquery.com/not/

':hidden'

if ($('#XX').is(':hidden))

See the jQuery doc for :hidden . 请参阅jQuery doc for :hidden

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM