|
-
November 14th, 2002, 11:56 PM
#1
multiple checkbox question
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
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
|