Hello!

My survey involves a matrix with checkboxes as follows:

var1 [] [] []

var2 [] [] []

var3 [] [] []

...

where the item "varX" is a previously answered item of an

expandable 25-row textfield array. The array is not required to be filled out completely. Unfortunately, all cells including the empty ones are taken over to the checkbox array so I need to find a way to hide the empty rows.

I already messed around with some code snippets from a board user but I cant get it to work. I would appreciate some help.

Regards

x

$(document).ready(function() {
handleRows(50);
function handleRows(q1ID) {
// Loop through all Q1 rows
$('#question'+q1ID+' tbody[id^="javatbd"]').each(function(i) {
// Hide empty rows in Q1
if($('input[type="text"]:last', this).val() == '') {
$(this).hide();
}
});
}
});