Title: Onclick Remove Values
Last modified: August 20, 2016

---

# Onclick Remove Values

 *  Resolved [raymond_toh](https://wordpress.org/support/users/raymond_toh/)
 * (@raymond_toh)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/onclick-remove-values/)
 * 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/](http://wordpress.org/extend/plugins/woocommerce-predictive-search/)

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

 *  Plugin Author [Steve Truman](https://wordpress.org/support/users/a3rev/)
 * (@a3rev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/onclick-remove-values/#post-3478773)
 * [@raymond_toh](https://wordpress.org/support/users/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](https://wordpress.org/support/users/raymond_toh/)
 * (@raymond_toh)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/onclick-remove-values/#post-3478778)
 * 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](https://wordpress.org/support/users/a3rev/)
 * (@a3rev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/onclick-remove-values/#post-3478779)
 * [@raymond_toh](https://wordpress.org/support/users/raymond_toh/)
 * Upgrade to v2.0 just released and you will see that feature has been added.
 * [From the Changelog](http://wordpress.org/extend/plugins/woocommerce-predictive-search/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.

 * ![](https://ps.w.org/woocommerce-predictive-search/assets/icon.svg?rev=2083455)
 * [Predictive Search for WooCommerce](https://wordpress.org/plugins/woocommerce-predictive-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-predictive-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-predictive-search/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-predictive-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-predictive-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-predictive-search/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Steve Truman](https://wordpress.org/support/users/a3rev/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/onclick-remove-values/#post-3478779)
 * Status: resolved