lcscne
10-06-2003, 03:18 PM
My bad, disregard this message, my problem was elsewhere.
for (i=0; i<document.frmStudentList.elements.length; i++)
{
if(document.frmStudentList.elements[i].type == "checkbox")
{
if(document.frmStudentList.elements[i].checked)
.....
I'm trying to check the state of checkbox so I can perform action. However I'm getting "Invalid Argument" on the second if statement. Any suggestions on how to check the state of a checkbox while in an array like this?
for (i=0; i<document.frmStudentList.elements.length; i++)
{
if(document.frmStudentList.elements[i].type == "checkbox")
{
if(document.frmStudentList.elements[i].checked)
.....
I'm trying to check the state of checkbox so I can perform action. However I'm getting "Invalid Argument" on the second if statement. Any suggestions on how to check the state of a checkbox while in an array like this?