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: Erik Arvidsson Date: March 26, 2004
You will have to set the value property but in Mozilla you can use selectionStart and selectionEnd to find the selection and setting the selection afterwards.

erik


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