# Clear text in textfield

**URL:** <https://forum.kirupa.com/t/clear-text-in-textfield/179471>\
**Category:** Uncategorized\
**Created:** [February 20, 2006, 3:15pm UTC](https://forum.kirupa.com/t/clear-text-in-textfield/179471 "2006-02-20T15:15:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakepeg](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@jakepeg](https://forum.kirupa.com/u/jakepeg)\
**Post date:** [February 20, 2006, 3:15pm UTC](https://forum.kirupa.com/t/clear-text-in-textfield/179471/1 "2006-02-20T15:15:46Z")

</div>

I have a textfield with the text “type here” in it. I want it so that when the user clicks in it the text disappears.

The textfield uses an onChange listener to initiate a list filter function so I want to maintain this and add another function just to clear the text.
