Forums

[resolved] [Plugin: Live Search Popup] Pre-filled Search Field (2 posts)

  1. greencode
    Member
    Posted 2 years ago #

    I usually have a bit of explanatory text such as "Search this site..." and when the user clicks inside the search field this disappears so they can then enter a search term. The problem is because the field is pre-filled then the live search thinks I've added the text and require it to search. Is there any way to stop this?

    The code I use for my search field is:
    <input type="text" value="Search the site..." onclick="value=''" onblur="if(this.value=='') this.value='Search the site...';" name="s" id="s" />

    http://wordpress.org/extend/plugins/live-search-popup/

  2. greencode
    Member
    Posted 2 years ago #

    Not to worry, I've decided to use Dave's WordPress Live Search instead as it doesn't seem to have this problem...

Topic Closed

This topic has been closed to new replies.

About this Topic