m.munoz
11-08-2007, 11:37 PM
How do I make an indicated value of a form textarea or input bar to automatically disappear when I click on it?
*I hope I said that right :S
*I hope I said that right :S
|
Click to See Complete Forum and Search --> : Auto-Delete Form Value On Click? m.munoz 11-08-2007, 11:37 PM How do I make an indicated value of a form textarea or input bar to automatically disappear when I click on it? *I hope I said that right :S UI-ZEIKVK 11-08-2007, 11:41 PM How do I make an indicated value of a form textarea or input bar to automatically disappear when I click on it? *I hope I said that right :S You need all content disappeared? or part of it? m.munoz 11-08-2007, 11:47 PM All of it if possible. It's just one word though. ray326 11-08-2007, 11:53 PM Use an onfocus() handler. It might look like so. <input type="text" name="foo" id="foo" value="input something" onclick="clear('foo')"> Then you'd write a Javascript function clear(thisId) to do the dirty work. m.munoz 11-09-2007, 01:03 AM thanks, it worked! ray326 11-09-2007, 09:38 PM Geez. Sometimes I could kick myself. <input type="text" name="foo" id="foo" value="input something" onfocus="this.value=''"> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |