| |
Tolle
Posts: 4
Score: 0
Joined: 8/21/2006
Status: offline
|
Hi, Is there a way to change the value of a checkbox using a variable in vbscript? I have written a hta script and want the change the status of checkboxes automatically using variables. the command document.form.chkboxname.checked = false works like a charm, but i want to change the 'chkboxname' with a variable called strTemp. When I try document.form.strTemp.checked = false I get an error. When I try document.form.[strTemp].checked = false I get an error. Any suggestions?
|
|