Hi, I need to add some text to a form field so the user can click the field to start filling it in, and then the text disappears. Can anybody advise me on exactly how to achieve this? Many thanks.
you need to insert a function in your html code which will do what you are after.... add this in your field code: onClick="this.value=''" that will reset the field and make it empty when clicked on so for example, a text field would look like this <INPUT TYPE="text" NAME="text_field" SIZE=50 VALUE="Fill in this text field! " onClick="this.value=''">
Or, if you're not using a WYSIWYG editor just do something like this: <input type = "text" name = "textbox" value = "Click to fill out"> Code (markup): The click to fill out will disappear once the user clicks on the box.
I would have to agree with unitedrokz that works on my computer perfectly. Thanks dude, helpful little tip. Oliver