View Single Post
Old 02-25-2010, 03:02 PM  
eMonk
Confirmed User
 
Industry Role:
Join Date: Aug 2003
Location: Canada
Posts: 2,310
Quote:
Originally Posted by mattodue View Post
Code:
<input type="text" name="search" value="Search..." onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" />
That worked.

I'm using a php script and the default value was:

value="{$g_term}"

replacing it with value="Search..." ok? I'm trying to figure out what that $var is for and if I can replace it safely.
eMonk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote