- Posts: 18
- 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(){ $( "<tbody ><tr class='array1'><th class='answertext' >New Label</th><td colspan='5'></tr>" ).insertBefore( "#javatbdxxxxxx" ); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $( "<tbody ><tr class='array1'><th class='answertext' >New Label</th><td>connaissance</td><td>contacts</td><td>partenariats</td><td>sans réponse</td></tr>" ).insertBefore( "#javatbdxxxxxx" ); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Create a new "sub-header" row var subHeader = $('table.subquestions-list thead tr:eq(0)', thisQuestion).clone(); $('td:eq(0)', subHeader).remove(); subHeader.addClass('sub-header'); subHeader.prepend('<th class="answertext">New Label</th>'); // Insert the new "sub-header" row $('#javatbdxxxxxx').after(subHeader); }); </script>
dla wrote: ... {QID}'" : what does it bring to enter QID here since it doesnt appear necessary?