4

How to display text when mouse over an input text box the simplest way (no css, or etc)??

0

3 Answers 3

8

Put some title and alt attributes on it.

<input type="text" title="show this text" alt="show this text" />
Sign up to request clarification or add additional context in comments.

2 Comments

Using a title attribute for that is however bad practise, the title attribute is the title of the element, nothing more. Browsers are not required to display it when you hover over it, and using it as such could be argued to be considered back practise.
so what do you suggest Lajla?
3

Don't have to use the alt attribute just the title will do this for you.

Comments

0

editbox.title = "XXX";

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.