- 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:complete',function() { // Identify the questions var thisQuestion = $('#question{QID}'); var nextQuestion = $(thisQuestion).next('.question-container'); // Hide the next question $(nextQuestion).hide(); // Insert the "%" symbols $(thisQuestion).addClass('with-inserted-symbols'); $('.answer-item input:text', thisQuestion).after('<span class="inserted-symbol">%</span>'); // Move the array row $('table.subquestion-list', thisQuestion).append($('tr.answers-list', nextQuestion)); }); </script>
<style type="text/css"> .with-inserted-symbols .answer-item input[type="text"] { display: inline-block; } .inserted-symbol { margin-left: 5px; } </style>