使用JavaScript启用和禁用linkbutton [英] To enable and disable linkbutton using javascript
本文介绍了使用JavaScript启用和禁用linkbutton的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我想使用javascript启用和禁用链接按钮
我使用了以下代码,但对任何帮助都将是最有价值的
要启用:
document.getElementById(clientID).disabled =";
禁用:
document.getElementById(clientID).disabled ="disabled";
Hi
I want to enable and disable link button using javascript
I have used the following code but its of no use any help will be valued the most
To enable:
document.getElementById(clientID).disabled = "";
To disable:
document.getElementById(clientID).disabled = "disabled";
推荐答案
我使用jquery来解决您的问题,代码如下:
禁用链接
I use jquery to solve your problem, code belows:
disable link
(' .clientID' span>).attr(' disabled',' 已禁用');
('.clientID').attr('disabled', 'disabled');
启用链接
enable link
(' .clientID' span>).attr(' disabled',' ');
('.clientID').attr('disabled', '');
这篇关于使用JavaScript启用和禁用linkbutton的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文