Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, I need to display the comple

Status
Not open for further replies.

rickpill

Programmer
Feb 28, 2002
108
0
0
US
Hi,

I need to display the complete text entered in an input box on a mouseover event. Is it possible to do this as is done when "alt" is specified in an "image" tag? I need to do this as text may overflow the input box ..


Thank you,

Rick
 
The title attribute will display some alt-like text whenever you hover over an input field. You just need to keep it updated with the value of the field, something like:

[tt]<input name=&quot;test&quot; type=&quot;text&quot; onmouseover=&quot;this.title=this.value;&quot; onmouseout=&quot;this.title=this.value;&quot; title=&quot;&quot;>[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top