Example:
<textarea rows="5" name="t1" cols="50">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="VBScript">
Sub cmdBtn1_onClick
Dim myStr
myStr = form1.textarea1.value
set myStr = ""
End Sub
</script>
<textarea rows="5" name="t1" cols="50">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="VBScript">
Sub cmdBtn1_onClick
Dim myStr
myStr = form1.textarea1.value
set myStr = ""
End Sub
</script>