- Posts: 3
- 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() { $('.subquestions-list .col-responses .col-answers').hide(); $('.subquestions-list thead td').hide(); $('.answertext').hide(); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Hide the sub-question column $('.subquestions-list .col-responses .col-answers', thisQuestion).hide(); $('.subquestions-list thead td', thisQuestion).hide(); $('.subquestions-list .answertext', thisQuestion).hide(); }); </script>
tpartner wrote: Yeah, nice tip David.
If you want to make it question-specific (in case you have more than one array on the page), you can do this:
Code:<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Hide the sub-question column $('.subquestions-list .col-responses .col-answers', thisQuestion).hide(); $('.subquestions-list thead td', thisQuestion).hide(); $('.subquestions-list .answertext', thisQuestion).hide(); }); </script>