- Posts: 4
- 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 var qID = {QID}; var thisQuestion = $('#question'+qID); // Define the sub-question code to be placed last var lastItem = 'SQ004'; // Move that item to the end of the list $('.question-item[id$="X'+qID+lastItem+'"]', thisQuestion).addClass('last-item').parent().appendTo($('.subquestion-list', thisQuestion)); }); </script>
.question-item.last-item { margin-top: 15px; }
.question-item.last-item { clear: both; margin-top: 15px; }