Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ var otherOffset = 1; var newOtherIndex = ($('#question{QID} div.question-item').length-(otherOffset+1)); $('#question{QID} div.question-item:eq('+newOtherIndex+')').parent().before($('#question{QID} div.question-item[id$="other"]').parent()); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ var otherOffset = 1; var newOtherIndex = ($('#question{QID} .question-item').length-(otherOffset+1)); $('#question{QID} .question-item:eq('+newOtherIndex+')').before($('#question{QID} .question-item[id$="other"]')); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ var otherOffset = 1; var newOtherIndex = ($('#question{QID} .question-item').length-(otherOffset+1)); $('#question{QID} .question-item:eq('+newOtherIndex+')').before($('#question{QID} .question-item[id$="other"]')); }); </script>