- Posts: 123
- Thank you received: 9
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ var thisQuestion = $('#question{QID}'); // Check first 3 options (but only if page has not been visited) if($('input:checkbox:checked', thisQuestion).length == 0) { $('input:checkbox:lt(3)', thisQuestion).each(function(i) { $(this).prop('checked', true); $(this).nextAll('input:hidden:eq(0)').val('Y'); checkconditions(this.value, this.name, this.type); }); } }); </script>