Kan evengoed alle antwoorden op JA zetten bij het laden van de array maar...
Deze doet het helaas niet in Lime 3.22 ((
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){var qID =2768;// Loop through the rows and check the first radio if none are already checked
$('#question'+qID+' table.question tbody tr').each(function(i){if($('input.radio:checked', this).length ==0){
$('input.radio:eq(0)', this).attr('checked',true);}});});</script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){// Identify this question IDvar qID ={QID};// Loop through the rows and check the first radio if none are already checked
$('#question'+qID+' .table-array-radio tr.answers-list').each(function(i){if($('input[type="radio"]:checked', this).length ==0){
$('input[type="radio"]:eq(0)', this).trigger('click');}});});</script>