如何查找锚标签的可见状态 [英] How to find the anchor tag's Visible status
本文介绍了如何查找锚标签的可见状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这样的代码,在某些条件下,我在代码中使链接visible = false,visible = true。我需要在Jquery中获取锚控件的可见状态。我试过无法得到任何解决方案。
Hi,
I have code like this, on some conditions I make the link visible=false,visible=true in code. I need to get the visible status of the anchor control in Jquery. I have tried could not get any solution.
<ul runat="server" id="menubar">
<li><a href="~/test" id="mnuTest" runat="server">Test</a></li>
<li><a href="~/test1" id="mnuTest1" runat="server">Test1</a></li>
</ul>
推荐答案
获取锚标记的可见性属性:
To get the visibility property of the anchor tag :
( #mnuTest)。parent( li)。css( visibility);
("#mnuTest").parent("li").css("visibility");
试试这个。确保anchor标签应该具有可见属性
try this.make sure that the anchor tag should have visible attribute
这篇关于如何查找锚标签的可见状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文