How to show default text in a HTML text box when it is empty?

I want to show a default text in a HTML text box when it is empty with grey color. How can I do this using JavaScript?

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion