Properties in Dubai - Find jobs - Gavin Newsom - WoW Gold - 住宅ワークなら内職.jp

PDA

View Full Version : Reseting a form when you click it?


crazyryan
Apr 7th 2007, 4:27 am
How would I achieve this:

If I had a search box that said "Type your query here" and a user clicked on it, that text would disappear for them.

I've seen it on sites like www.break.com and others.

walesalex
Apr 7th 2007, 10:11 am
onfocus="this.value='';"

Just stick that attribute in there.