I have the following segment of js, which works in firefox:
for (question = 1; question<=8; question++){
for (i=0;i<document.forms[0].eval("fundDispSkills"+question).length;i++) {
if (document.forms[0].eval("fundDispSkills"+question)[i].checked) {
passFailScore = passFailScore + parseInt(document.forms[0].eval("fundDispSkills"+question)[i].value);
number_of_questions_answered = number_of_questions_answered +1;
}
}
}
but the eval("fundDispSkills"+question) part is not allowed in ie.
What I need to do is find a different way to get fundDispSkills+question to evaluate to the name fundDispSkills1, fundDispSkills2, fundDispSkills3....etc.
I tried just concatenating "fundDispSkills"+question but both firefox and ie give me errors.
Any ideas?