- Posts: 19
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // List of sub-question codes to be pinned to the bottom (in order) var sqCodes = ['8', '9', '10', '11']; // Identify this question var qID = '{QID}'; var thisQuestion = $('#question'+qID); // Loop through the sub-question codes and reposition the corresponding row $.each(sqCodes, function(i, val) { var thisRow = $('tr[id^="javatbd"][id$="X'+qID+val+'"]'); $('table.subquestion-list tbody:last', thisQuestion).append(thisRow); }); }); </script>