- Posts: 26
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script> $(document).ready(function() { var thisQuestion = $('#question{QID}'); $('ul.subquestions-list li', thisQuestion).addClass('normalOpt'); $('ul.subquestions-list li', thisQuestion).each(function(i) { $('.other-item').removeClass('normalOpt').addClass('exlusiveOpt'); $('.exlusiveOpt').prev().removeClass('normalOpt').addClass('exlusiveOpt2'); }); $('.exlusiveOpt2 input[type=checkbox]').change(function(event) { if($(this).is(':checked')) { $('.normalOpt input[type=checkbox]').prop('disabled', true); $('.normalOpt input[type=checkbox]').prop("checked", false); $('.normalOpt input[type=checkbox]').val(''); } else{ $('.normalOpt input[type=checkbox]').prop('disabled', false); } }); }); </script>
We have a manual : www.limesurvey.org/manual/Question_type_...rray_filter_style.29OMdev wrote: I tried and this actually hide the desired sub-question .. not disable them like exclusive option do...