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"); });
精彩评论