- Posts: 81
- Thank you received: 2
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ // Identify this question var thisQuestion = $('#question{QID}'); // Insert the new header row $('table.subquestions-list thead', thisQuestion).prepend('<tr class="new-header">\ <td>&nbsp;</td>\ <th colspan="6" style="text-align:left;">Not satisfied at all</th>\ <th colspan="5" style="text-align:right;">Completely satisfied</th>\ <th></th>\ </tr>'); }); </script>
but it is no longer working with the current version (3.22.17, professional hosted).
<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"></td>\ <th colspan="6" style="text-align:left;">Not satisfied at all</th>\ <th colspan="5" style="text-align:right;">Completely satisfied</th>\ <td colspan="2"></td>\ </tr>'); }); </script>