- Posts: 24
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { var qID = QQ; $('#question'+qID+' table.question tbody').each(function(i){ if(i < 3) { if($('input.radio:checked', this).length == 0) { $('input.radio:last', this).attr('checked', true); } } }); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#question'+97718+' table.question tbody tr').each(function(i){ if(i <15 ) { if($('input.radio:checked', this).length == 0) { $('input.radio:nth-child(2)', this).click(); } } }); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#question{QID} tr.answers-list').each(function(i){ if(i < 15 ) { if($('input.radio:checked', this).length == 0) { console.log($('input.radio:checked', this).length); $('input.radio:eq(1)', this).click(); } } }); }); </script>