Subscribe to Subscribers
Talk to Webmaster Tony John

Forums » .NET » HTML »

How to display hint box when textbox is selected


Posted Date: 12 Apr 2012      Posted By:: Hardik     Member Level: Silver    Member Rank: 1069     Points: 3   Responses: 3



Example : http://my.indiamart.com/cgi/glusr-reg1.mp?action=newreg1&modid=MY&redirect=http%3A//www.indiamart.com/#top



I want this type of effect.

I have try onfocus(), onclick(), onblur().

Hint remains when I select that textbox through tab, but it doesn't remain when I click that textbox.
Hint displays at the moment when I click.




Responses

#666210    Author: Ajatshatru Upadhyay      Member Level: Gold      Member Rank: 19     Date: 12/Apr/2012   Rating: 2 out of 52 out of 5     Points: 2

Hi,
Use "ToolTip" property of the TextBox (ASP.NET control)


<asp:TextBox ID = "TextBox1" Runat="server" ToolTip = "Enter your email address here"></asp:TextBox>


For HTML use "Title" attribute:


<input type="text" title="Enter your email address here">


Hope it'll help you.
Regards
Ajatshatru



 
#666214    Author: Bijit      Member Level: Gold      Member Rank: 157     Date: 13/Apr/2012   Rating: 2 out of 52 out of 5     Points: 3

You can do it two way ...

1) Using Javascript ...

add js file <script type="text/javascript" src="wz_tooltip.js"></script>

<asp:TextBox ID="aa" runat ="server" onmouseover="Tip('Some text')" onmouseout="UnTip()"></asp:TextBox>

2) using ToolTip property

<asp:TextBox ID="aa" runat ="server" ToolTip ="Text" ></asp:TextBox>



 
#666599    Author: Siva Prasad      Member Level: Gold      Member Rank: 61     Date: 16/Apr/2012   Rating: 2 out of 52 out of 5     Points: 2


<asp:TextBox ID="TextBox1" runat="server" ReadOnly = "true" Text = "Hello" ToolTip = "This is sivas tooltip" ></asp:TextBox>






 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Hyperlink in drop down
Previous : Server computer for a large organization
Return to Discussion Forum
Post New Message
Category:

Related Messages
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.