|
此文章由 dalaohu 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 dalaohu 所有!转贴必须注明作者、出处和本声明,并保持内容完整
原帖由 澳贼 于 2010-4-21 17:45 发表 
asp.net 的 checkbox,
如何用 javascript 把 asp:checkbox 的text 隐藏??
我用
document.getElementById("CheckBox_1").style.display = "none";
只能把checkbox隐藏,却不能隐藏text/label
那位大虾 ...
asp:checkbox rendered as 2 controls
one checkbox and another for the label (or span depending you associate to the control or not)
you only hide the "CheckBox_1" which is the id of the checkbox
you need to do the same to the Label ID.
or apply CssClass to asp:checkbox, and then use Jquery to $("className").hide();
[ 本帖最后由 dalaohu 于 2010-4-21 18:44 编辑 ] |
评分
-
查看全部评分
|