Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Adding hint text to google custom search

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34259
    alice
    Participant

    Hi – Can anyone tell me the easiest way to add some hint text inside the default google custom search box e.g. “type and hit enter to search blog”. Thereby, eliminating the need for the search button next to the box. I’m just using the default code with no additional styling applied to the box as yet.

    Thanks :-)

    #86664
    Roxon
    Member

    Easy!

    Then you could add some JavaScript to clear it when the user clicks it. Good luck.

    #86671
    TheDoc
    Member

    @Paulie_D – definitely, just have to make sure to take care of IE with some JS.

    #87010
    alice
    Participant

    You’re awesome folks! Thanks so much!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.