我有这样的标签。
<li id="singlechatpanel-1" style="visibility: hidden;">
//content
</li>
尝试像这样检查它:
$(".subpanel a").click(function()
{
var chatterNickname = $(this).text();
if(!$("#singlechatpanel-1").is(':visible'))
{
alert("Room 1 is filled.");
$("#singlechatpanel-1").css({'visibility':'visible'});
$("#singlechatpanel-1 #chatter_nickname").html("Chatting with: " + chatterNickname);
}
如果条件总是返回假。如何检查此 div 的可见性状态?