Hi,
I tried a tip/workaround find here but...
I've an array of numbers with the checkbox option.
I've added this code (found in the workaround page) :
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// A function to pre-check a column of an array
function checkedDefault(qID, column) {
var checkedCol = column - 1;
$('#question' + qID + ' table.question tbody tr').each(function(i) {
if ($('input.checkbox[checked=true]', this).length == 0) {
$('input.checkbox:eq(' + checkedCol + ')', this).attr('checked', true);
}
});
}
// Call the function with a question ID and column number
checkedDefault(165, 1);
});
</script>
It works well but...
My question is mandatory. The values (boexe checked) do not appear to be taken into account.
Do I miss something ?
For the moment, I put my question "optional..."
Is it possible (for check boxes) to check on column for all the values in that column ?
Thanks