# Input textfield (w/dissapearing pre-filled text)?

**URL:** <https://forum.kirupa.com/t/input-textfield-w-dissapearing-pre-filled-text/219450>\
**Category:** Uncategorized\
**Created:** [March 16, 2007, 3:50pm UTC](https://forum.kirupa.com/t/input-textfield-w-dissapearing-pre-filled-text/219450 "2007-03-16T15:50:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoken](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@geoken](https://forum.kirupa.com/u/geoken)\
**Post date:** [March 16, 2007, 3:50pm UTC](https://forum.kirupa.com/t/input-textfield-w-dissapearing-pre-filled-text/219450/1 "2007-03-16T15:50:46Z")

</div>

Can this be done easily?

Basically I want an input textfield that is pre-filled with some text. I want this pre-filled text to dissapear when the input textfield recieves focus (and if possible re-appear if the text field losses focus without having any text entered in to it).

Right now I’m thinking of having the pre-filled text inside a MC that sits on top of the input textfield and dissapears on mouse over, and re-appears on mouse out after checking if there is any text in the textfield. I was just wondering if there was a cleaner way of doing this?
