- Posts: 2
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question code var qID = {QID}; // Define the sub-question codes to be positioned last var sqCodes = ['SQ005', 'SQ006', 'SQ007']; // Loop through those sq codes and place that sub-question at the end of the choices list $(sqCodes).each(function(i, code) { if($('#question'+qID+' .dragDropChoiceList li[id$="X'+qID+code+'"]').length > 0) { $('#question'+qID+' .dragDropChoiceList').append($('li[id$="X'+qID+code+'"]')); } }); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question code var qID = {QID}; // Define the sub-question codes to be positioned last var sqCodes = ['SQ005', 'SQ006', 'SQ007']; // Loop through those sq codes and place that sub-question at the end of the choices list $(sqCodes).each(function(i, code) { if($('#question'+qID+' .sortable-choice li[id$="X'+qID+code+'"]').length > 0) { $('#question'+qID+' .sortable-choice').append($('li[id$="X'+qID+code+'"]')); } }); }); </script>