Index: lams_central/web/questionChoice.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/Attic/questionChoice.jsp,v diff -u -r1.4 -r1.5 --- lams_central/web/questionChoice.jsp 20 Mar 2013 13:44:15 -0000 1.4 +++ lams_central/web/questionChoice.jsp 21 Mar 2014 08:53:38 -0000 1.5 @@ -83,10 +83,12 @@ $(document).ready(function(){ $('.question').change(function(){ - var checked = $(this).is(':checked'); - var selector = '#' + $(this).attr('id'); - var answerDiv = $(selector + 'answerDiv'); - var answersVisible = answerDiv.find('input[type="checkbox"]').length > 0; + var checked = $(this).is(':checked'), + selector = '#' + $(this).attr('id'), + answerDiv = $(selector + 'answerDiv'), + answersVisible = answerDiv.find('input[type="checkbox"]').length > 0; + + $(this).attr('checked', checked); // enable/disable answers and feedback fields // so they do not get posted when not needed if (answersVisible) { @@ -124,6 +126,11 @@ .find('input').attr('disabled', 'disabled'); } }); + + $('.answer').change(function(){ + // FF does not seem to do it right + $(this).attr('checked', $(this).is(':checked')); + }); }); @@ -196,7 +203,7 @@ ${answer.text}