How to add text that disappears in a form text field when clicked (onfocus)

By Chris on July 21, 2011 in Web Design Snippets
0
0

.. very simply by adding onfocus=”this.value=””  to your input or text area HTML.

i.e.  <textarea name=”caption” id=”caption”  onfocus=”this.value=”” rows=”1″>enter  your new caption here</textarea>

0 Comments

Leave a reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.