Click to See Complete Forum and Search --> : Change the VALUE


sergyba
10-29-2003, 07:08 AM
In a form you have CAMPO type = text

If this CAMPO has value a default value
but i want that i put the mouse over the text then
value is ""

|text **** |

+ 1 click over

| | value = ""

Colaboration friends.
SERGY

gil davis
10-29-2003, 07:30 AM
Try this:
<input type="text" name="campo" value="Default" onfocus="if(this.value=='Default')this.value=''">
Or this:
<input type="text" name="campo" value="Default" onclick="if(this.value=='Default')this.value=''">

sergyba
10-29-2003, 07:43 AM
Yeahh. Thanks!!