Hi, - Terribly sorry to bother you sharkies, but this has ruined my sleep for a week - I am NOT a pro javascripter, merely a newbie trying to finish a quiz based on a script I found - various questions with checkboxes - Now the problem - For some of the questions the correct answer is UNCHECKED (null) - This must be SO basic but I cant find anything anywhere ... The correct answers are placed in an array on a result page - eg.
correctAnswers = new Array('1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1');
I hoped to be able to retrieve/confirm the value of the unchecked checkbox by inserting 'null' - but that didnt work (neither did false or 0 with/without brackets) - I know how to set values of form elements BUT the script has named each checkbox numerically to build the array - (yes I know thats bad coding Latin) - Here is a link to the quiz :
Yup, - thats danish !!!
Hope you can help me - would be much appreciated I tell you !
Best Theo Denmark
correctAnswers = new Array('1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1','1');
I hoped to be able to retrieve/confirm the value of the unchecked checkbox by inserting 'null' - but that didnt work (neither did false or 0 with/without brackets) - I know how to set values of form elements BUT the script has named each checkbox numerically to build the array - (yes I know thats bad coding Latin) - Here is a link to the quiz :
Yup, - thats danish !!!

Hope you can help me - would be much appreciated I tell you !
Best Theo Denmark
Comment