bjnst6
November 14th, 2002, 10:56 PM
hey there...
i'm using IE 6...and i've got this javascript code:
var totalCheck = theForm.chkDelete.length;
alert(theForm.chkDelete.value);
alert(theForm.chkDelete.length);
okay...now i have this html on the page:
<input type="checkbox" name="chkDelete" value="#EventID#">
instead a cfoutput loop...so in a loop.
now when i have 2 or more checkboxes on the page it works fine...i get
chkDelete.value = (whatever the first EventID is)
chkDelete.length = 2
but when i have only one checkbox the .value works the same...but the length is undefined.
what's going on here and how can i test for just one box if it won't work this way?
thanks!
b
i'm using IE 6...and i've got this javascript code:
var totalCheck = theForm.chkDelete.length;
alert(theForm.chkDelete.value);
alert(theForm.chkDelete.length);
okay...now i have this html on the page:
<input type="checkbox" name="chkDelete" value="#EventID#">
instead a cfoutput loop...so in a loop.
now when i have 2 or more checkboxes on the page it works fine...i get
chkDelete.value = (whatever the first EventID is)
chkDelete.length = 2
but when i have only one checkbox the .value works the same...but the length is undefined.
what's going on here and how can i test for just one box if it won't work this way?
thanks!
b