- Posts: 106
- Thank you received: 2
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
$(document).on('ready pjax:scriptcomplete',function(){ // Insert the column categories $('#question{QID} table.subquestion-list thead tr:eq(0) td:eq(0)').remove(); $('#question{QID} table.subquestion-list thead').prepend('<tr class="ls-heading">\ <td rowspan="2" colspan="2"></td>\ <th class="answer-text inserted-header" colspan="3">Category 1</th>\ <th class="answer-text inserted-header" colspan="3">Category 2</th>\ </tr>');
Please Log in to join the conversation.
Please Log in to join the conversation.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // Insert the column categories $('#question{QID} table.subquestion-list thead tr:eq(0) td:eq(0)').remove(); $('#question{QID} table.subquestion-list thead').prepend('<tr class="ls-heading">\ <td rowspan="2" colspan="1" style="border-top:0 !important;"></td>\ <th class="answer-text inserted-header" colspan="1">not at all</th>\ <th class="answer-text inserted-header" colspan="1"></th>\ <th class="answer-text inserted-header" colspan="1"></th>\ <th class="answer-text inserted-header" colspan="1"></th>\ <th class="answer-text inserted-header" colspan="1">completely</th>\ </tr>'); }); </script>
.fruity .ls-answers .ls-heading th { font-weight: 400; color:red; // only to show the effect }
Please Log in to join the conversation.
Please Log in to join the conversation.