LinuxKommy
Technical User
This may be a stupid question, but I'm trying to use a variable in an object name, how would i do this? I have buttons named Length1, Length2, etc. and their onclick event is LD(1), LD(2), etc., respetively. my code is posted below. any help woulld be greatly appreciated.
Douglas
Douglas
Code:
<script language="VBScript">
Sub LD(j)
document.form1.Length .Value=456
' j needs to go here ^
document.form1.submit
end sub
</script>