|
Hi all.
I just want the text in my search bar to disappear when the user clicks inside of it.
Here is my code:
<input type="text" title="Search" onfocus="(this.value=='test'){this.value='';}" onblur="if(this.value==''){this.value='test';}" value="test"><input value="Find" type="submit">
I can make the onfocus/onblur parameters work with a form, but it doesn't work with this and I don't know why. Syntax? I dunno. Can anyone help?
Thanks.
|