动态隐藏锚标签 [英] Hide a anchor tag dynamically

查看:103
本文介绍了动态隐藏锚标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我使用了带有href =#"的锚标记,并且我正在使用jquery来显示我的登录弹出窗口.
当我单击锚点时,页面上方会弹出一个登录弹出窗口.通过登录弹出窗口登录后,我想隐藏该锚点标签.
我要动态地完成所有这些操作.我还使用了标签的runat属性.
但它不起作用.

预先谢谢您

Hello guys,

I have used a anchor tag with href="#" and i m using jquery to show my login popup.
when i click the anchor, a login popup drops from the above of the page.and after logged in through the login popup, i want to hide that anchor tag.
this all i want dynamically.and i have also used the runat attribute for the tag.
but it doesn''t working.

thank you in advance

推荐答案

(来自服务器端)后面的代码
anchorid.Visible=false ( add runat="server" )
或在客户端javascript
document.getElementById("anchorid").style.cssText="display:none";
from the code behind (server side)
anchorid.Visible=false ( add runat="server" )
or in client side javascript
document.getElementById("anchorid").style.cssText="display:none";


如何隐藏锚点与Jquery链接 [ ^ ]
如何使用jQuery启用或禁用锚点? [ ^ ]
How to hide anchor link with Jquery[^]
How to enable or disable an anchor using jQuery?[^]


这篇关于动态隐藏锚标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆