Search form value
-
How can I replace the:
<input type="text" value="<?php the_search_query(); ?>" name="s" id="s"/>
for the search with:
<input type="text" value="Enter City, State or Zipcode" name="s" id="s"/>
And it still work as a search?
Basically I want that text to disappear when someone selects the input box.
I tried this and it didn’t work:
<input type="text" value="<?php the_search_query('Enter City, State or Zipcode'); ?>" name="s" id="s"/>
Any ideas?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Search form value’ is closed to new replies.