Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Empty a textbox

Status
Not open for further replies.

liteon

Programmer
Jan 7, 2003
11
0
0
DE
How can I use javascript to empty a textbox or just give it a value of "".
 
Yes!

<script>
function emptyIt(inField){
inField.value = &quot;&quot;
}
</script>
<input name=&quot;empty&quot; onBlur=&quot;emptyIt(this)&quot;> Get the Best Answers! faq333-2924
&quot;A witty saying proves nothing.&quot; - Voltaire
mikewolf@tst-us.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top