使用javascript在aspx页面上隐藏用户控件复选框 [英] hide user control checkbox on aspx page mouse click using javascript
本文介绍了使用javascript在aspx页面上隐藏用户控件复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个用户coontrol,其中包含一个文本框和一个复选框.现在,我在aspx页面上使用此usecontrol.我想检查复选框中的某些值并在文本框中显示,然后在控件外部单击页面上的任意位置后,该复选框应隐藏.我正在使用asp.net 2.0,c#和javascript执行此操作.
谁能告诉我该怎么做.
在此先感谢
Nitin
Hi All,
I have a user coontrol which contains a text box and a checklistbox. Now I am using this usecontrol on aspx page. I want to check some values in checklistbox and display in text box and after i click outside the control anywhere on page the check box should get hide. I am doing this using asp.net 2.0,c# and javascript.
Can anyone tell me how to do this.
Thanks in advance
Nitin
推荐答案
在任何触发事件中使用jquery都会执行此操作
Using jquery in whatever trigger event you would do this
("my control").hide();
("my control").hide();
这篇关于使用javascript在aspx页面上隐藏用户控件复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文