WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Text in search field (3 posts)

  1. yeleek
    Member
    Posted 7 years ago #

    Hi,
    I'd like to have the word 'search' in the search field box in the sidebar. When it then is clicked on (gets focus) - i'd like that box to clear ready for what ever search text is to be entered.

    How can i do this please?

    Thank you

  2. Kafkaesqui

    Posted 7 years ago #

    Add this bit to your search form's <input> tag:

    onfocus="this.value=''" value="search"

  3. yeleek
    Member
    Posted 7 years ago #

    Thats great - will try it later. Thank you!!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags