- Posts: 81
- Thank you received: 2
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // The "Other" sub-question code var otherCode = '6'; // Identify this question var qID = '{QID}'; var thisQuestion = $('#question'+qID); var nextQuestion = $(thisQuestion).nextAll('.text-short:eq(0)'); // Move the next question $('.answer-item[id$="X'+qID+otherCode+'"]', thisQuestion).append(nextQuestion); }); </script>
<style type="text/css"> .answer-item .question-container { margin: 0 0 0 -20px; border: 0 none; background: transparent; } .answer-item .question-title-container, .answer-item .question-valid-container { display: none; } .answer-item .answer-container, .answer-item .answer-item { padding: 0; } </style>