Page 1 of 1

how to remove text from text box on first click through js

Posted: Fri Jun 26, 2009 8:49 am
by waseem83
how to remove default text from text box on first click through javascript?
can any body write code for me?

Re: how to remove text from text box on first click through js

Posted: Fri Jun 26, 2009 9:15 am
by juma929
Hello,

Surely this isnt a PHP question :P.

<input type="text" onClick="this.value=''"/>

I think that should work... :roll:

Thanks.

Re: how to remove text from text box on first click through js

Posted: Fri Jun 26, 2009 9:44 am
by waseem83
Thanx but I want to do that only on first click after page load