do you know a script, to disable a single checkbox in a multiple choice question or in a array (numbers) with checkboxes. I would like to use the array style, because it is much shorter and more intuitive for my question. But for one line, one answering option (column) is impossible. So It would be very nice to disable it by script.
Long time ago I read something here in the forum, that makes me believe it is possible - but unfortunatily I can't find it anymore.
I wasn't able to adapt the following script by changing "input.radio" to "input[type="checkbox"]", but I adapted the last line and changed the specific "code" of the radio-button in the last line to my checkbox.
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){//Hide the last radio in the first row
$('#question'+{QID}+' tr.answers-list:first input.radio:last').hide();//Hide the 3rd radio in the 3rd row
$('#question'+{QID}+' tr.answers-list:eq(2) input.radio:eq(2)').hide();//Hide the first radio of Option 4
$('#answer433587X129X10164-1').hide();});</script>
My changes (oriented on last line in the script above):
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){//Hide what ever you want by adding the code of your interactive element
$('#cbox_585145X141X34956_1').hide();});</script>