开发者

Label,TextBox,Asp.net

开发者 https://www.devze.com 2022-12-24 19:14 出处:网络
I have a label and a text box associated to it . I have added some text in开发者_开发知识库 text box which is invisible at first...now I want to display the content after I go On the label... If you a

I have a label and a text box associated to it . I have added some text in开发者_开发知识库 text box which is invisible at first... now I want to display the content after I go On the label...


If you are using an HTML label rather than an ASP label, you can use the onmouseover event. From within this event, you can then turn on/off the visibility of the text.


If you want to show one textbox after typing something in another, you can use the javascript onBlur() event to show it.


using jquery it can be:

$("#MyLabel").mouseover(function(){ $("#MyTextBox").attr("visible","true"); });

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号