• Resolved raymond_toh

    (@raymond_toh)


    Hi, is there anyway we can remove the text when click on the input and insert the text when unclick on the input?

    I tried using this method, bu it dont seems to work.
    <input type=”text” class=”txt_livesearch ac_input_3″ id=”pp_course_3″ value=”I’m looking for…” name=”rs” onclick=”if(this.value==’I’m looking for…’){this.value=”}” onblur=”if(this.value==”){this.value=’I’m looking for…’}” autocomplete=”off”>

    http://wordpress.org/extend/plugins/woocommerce-predictive-search/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Steve Truman

    (@a3rev)

    @raymond_toh

    Sorry i have no idea what you are asking here? Are you talking about the text that a user types in the search box?

    Thread Starter raymond_toh

    (@raymond_toh)

    Hi, so sorry about the confusion of my question.

    What I mean is, we can indicate the text of the search box like ‘Search Here’. When the user click on the input box, the text ‘Search Here’ will be cleared away and restore the text when the user click out of the input box.

    Plugin Author Steve Truman

    (@a3rev)

    @raymond_toh

    Upgrade to v2.0 just released and you will see that feature has been added.

    From the Changelog

    Feature: Added the ability to add text content that shows inside the Search box. Added as a Global setting or can be individually set on each Widget.

    Add you own text – it hides when the user clicks in the box and starts typing – after that it is irrelevant as the search has started – when the page is reloaded the text shows again until a user clicks in the box to start a search.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Onclick Remove Values’ is closed to new replies.