|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
hi there!
i have a form with a textarea(the value is taken out from the database) i would like to know if it is possible to erase contents in that file and not delete it using asp or javascript? or is there a way to select all the text in that textarrea and clear it? thanks in advance ![]() |
|
#2
|
||||
|
||||
|
If you have a form with a value in the text area, just change the form... You are the one who controls what is displayed. Or am I not understanding your question?
Quote:
|
|
#3
|
|||
|
|||
|
Like karsh44 says, it makes no sense to me!
Re-read your post for a second... ---BEGIN QUOTE--- hi there! i have a form with a textarea(the value is taken out from the database) ---END QUOTE--- OK so you fill in the <textarea> with data from your database. So far so good. ---BEGIN QUOTE--- I would like to know if it is possible to erase contents in that file and not delete it using asp or javascript? ---END QUOTE--- What file ??? You're talking about a file but what file??? The ASP file holding your <textarea> ??? ---BEGIN QUOTE--- or is there a way to select all the text in that textarrea and clear it? ---END QUOTE--- Well there is always a way to do something, it's you the programmer that has to think! Now, one way would be to create a <button> that has an onclick attribute calling a javascript function for example. That function would clear/erase the entire content of your <textarea> But is that what you want??? You could also have a <button> that once clicked, selects *all* the content of the <textarea>, the user can then press the DELETE button on his keyboard! But is that what you want??? Anyway...Hope this helps! Sincerely Vlince |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > How to clear the textarea? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|