|
-
Dec 22nd, 2005, 01:42 PM
#1
Thread Starter
Addicted Member
Control array in VBScript
Hail,
If I have 3 text boxes with the same name that I put in an array:
<input name='txtInput[]' size='5'>
<input name='txtInput[]' size='5'>
<input name='txtInput[]' size='5'>
How can I in a vbscript refer to #2 for example? I thought I could say something like:
<SCRIPT LANGUAGE="VBScript">
<!--
Sub B1_OnClick
msgbox txtInput(2).value
End Sub
-->
</SCRIPT>
But it doesn't work, this might be fairly obvious, can someone help me out?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|