WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 How to delete the content of <textarea>, Anders Both, March 5, 2004
     Re:How to delete the content of <textarea>, Erik Arvidsson, March 26, 2004
     Re:How to delete the content of <textarea>, GingerNutter, March 25, 2004

Subject: Re:How to delete the content of <textarea> From: GingerNutter Date: March 25, 2004

Try this!!

<textarea id=boobopaloola>shamone</textarea>

<a href=javascript:; onClick=document.getElementById("boobopaloola").innerText=''>Blank it</a>

 

From: Anders Both
Sent: March 5, 2004
Subject: Re:How to delete the content of <textarea>

How can i delete the content of a <textarea> ?

I know i can write textarea.value = "";

But i have problems with the cursor and focus in Mozilla, when using this solution. How could I e.g. athive the same by using ranges, or something else ?

`?





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX