- Posts: 74
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
5. Overall, how would you rate your customer service experience? <script type="text/javascript" charset="utf-8">
$(document).ready(function(){
// ADD HEADER ROW
var thisQuestion = $('#question{QID}');
// Insert the new header row
$('table.subquestions-list thead', thisQuestion).prepend('<tr class="new-header">\
<td> </td>\
<th colspan="6" style="text-align:left;">Not at all important</th>\
<th colspan="5" style="text-align:right;">Extremely important</th>\
<th></th>\
</tr>');
// HIDE SUB-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>
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ // IDENTIFY THIS QUESTION var thisQuestion = $('#question{QID}'); // HIDE SUB-QUESTION $('.subquestions-list .col-answers', thisQuestion).remove(); $('.subquestions-list thead td', thisQuestion).remove(); $('.subquestions-list .answertext', thisQuestion).remove(); $('.subquestions-list col', thisQuestion).attr('width', (100/$('.subquestions-list col', thisQuestion).length)+'%'); // ADD HEADER ROW $('table.subquestions-list thead', thisQuestion).prepend('<tr class="new-header">\ <th colspan="11" style="text-align:left;">Not at all important<span style="float:right">Extremely important</span></th>\ <th></th>\ </tr>'); }); </script>
table.subquestions-list { width: 100%; }
div.answers table { width: 100%; }