View Full Version : Creating example disappearing input text.
09-29-2007, 03:36 AM
How do you create text for a search field that disappears when a user clicks it? Like... Have the text "eg. Home Remodel", then user click the field and it disappears...
09-29-2007, 04:24 AM
<input value="default_value" onfocus="if (this.value == 'default_value') this.value = '';" />
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.