Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

Easiest way is to do something like

XML
<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/[^]
 
Share this answer
 
v3
Comments
Manish Dalwadi 7-Feb-14 2:42am    
thanx dr.but i want tooltip like shaadi.com in easi steps..
pls help
thanks
JoCodes 7-Feb-14 3:17am    
Check these
http://www.codeproject.com/Articles/616627/ASP-NET-Tip-How-To-Show-A-Tooltip-Using-The-ASP-NE
http://www.dotnetcurry.com/showarticle.aspx?ID=395
http://davidwalsh.name/css-attr-content-tooltips
Manish Dalwadi 7-Feb-14 3:23am    
thanks dr.
JoCodes 7-Feb-14 3:36am    
Welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900