打开工具提示onfocus文本框 [英] open tooltip onfocus textbox
本文介绍了打开工具提示onfocus文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i想为我的网站创建一个工具提示,当我输入任何控件(文本框)时,工具提示将打开并显示提示
如何轻松创建工具提示..?
谢谢
解决方案
最简单方法是做类似的事情
< script >
function ShowTooltip()
{
document.getElementById(TextBox1)。title =Message;
}
< / script < span class =code-keyword>>
< asp :textbox runat = server id = TextBox1 onfocus = ShowTooltip(); >
如果你把它变得更有吸引力,你需要使用CSS。
http://csstooltip.com/ [ ^ ]
hey..
i want to create a tooltip for my website that when i entered in any control(textbox) then tooltip will be open and show a hint
how to create tooltip easily..?
thanks
解决方案
Easiest way is to do something like
<script> function ShowTooltip() { document.getElementById("TextBox1").title="Message"; } </script> <asp:textbox runat="server" id="TextBox1" onfocus="ShowTooltip();">
If you make it more attractive , you need to use CSS with it.
http://csstooltip.com/[^]
这篇关于打开工具提示onfocus文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文