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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

re-initialize textarea

Status
Not open for further replies.

NurseIS

MIS
Sep 3, 2001
46
US
Example:
<textarea rows=&quot;5&quot; name=&quot;t1&quot; cols=&quot;50&quot;>the default text right here.</textarea>

I'm exploring & learning forms, including having cmd buttons for user control. Ex - Would like to have a specific cmd button to permit user to clear one textarea, another for clearing the textarea and radio button selected previously. Partial or complete reset / re-init on client side only. TY!

<script=&quot;VBScript&quot;>
Sub cmdBtn1_onClick
Dim myStr
myStr = form1.textarea1.value
set myStr = &quot;&quot;
End Sub
</script>
 
why not just
<script language=&quot;VBScript&quot;>
Sub cmdBtn1_onClick
form1.textarea1.value = &quot;&quot;
End Sub
</script>

by the way <script=&quot;vbscript&quot;>
should be<script language=&quot;vbscript&quot;>
also it's really not a browser compatiable way of web programming if you know your users will only use IE
[bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
Thank you. I'm obviously still struggling w syntax. And, yes, target audience uses IE exclusively. Writing local software training app. modules and helps using html files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top