- Posts: 3
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
$('document').ready(function(){ $('#question1204 li').css('display', 'none');//1 $('#question1259 tr').css('display', 'none');//1 $('#question1315 li').css('display', 'none');//2 $('#question1370 tr').css('display', 'none');//2 $('#question1259 thead tr').css('display', 'table-row'); $('#question1370 thead tr').css('display', 'table-row'); $(".answer_cell_001 .multiflexiselect").change(function() { var answerText = $.trim(this.parentElement.parentElement.childNodes[1].textContent); if (this.value == 4) { $( "#question1259 .answertext:contains('" + answerText + "')").parent().css('display','table-row'); $( "#question1204 .answertext:contains('" + answerText + "')").parent().css('display', 'block'); } }) $(".answer_cell_002 .multiflexiselect").change(function() { var answerText = $.trim(this.parentElement.parentElement.childNodes[1].textContent); if (this.value == 4) { $( "#question1370 .answertext:contains('" + answerText + "')").parent().css('display','table-row'); $( "#question1315 .answertext:contains('" + answerText + "')").parent().css('display', 'block'); } }) }); </script>