- Posts: 29
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).on('ready',function(){ var thisSelect = $('#question{QID} input[id^="answer"]:eq(0)'); var secondSelect = $('#question{QID}').nextAll('[id^="question"]:eq(0)').find('input[id^="answer"]:eq(0)'); var thirdSelect = $('#question{QID}').nextAll('[id^="question"]:eq(1)').find('input[id^="answer"]:eq(0)'); // Move the first dropdown $('#question{QID} .inserted-dropdown:eq(0)').append(thisSelect); // Move the second dropdown $('#question{QID} .inserted-dropdown:eq(1)').append(secondSelect); // Move the second dropdown $('#question{QID} .inserted-dropdown:eq(2)').append(thirdSelect); // Hide the next question $('#question{QID}').nextAll('[id^="question"]:eq(0)').hide(); // Hide the next question $('#question{QID}').nextAll('[id^="question"]:eq(1)').hide(); }); </script> <style type="text/css">#question{QID} input { display: inline-block; margin: 0 0 0 -0.25em; width: 17%; height: auto; padding: 0; } </style>
And you should consider an update to LS 3.x LTS (NOT to LS 4.x). Your installation is over 3 years old and not even the latest version of the 2.7x branch.Version 2.67.3+170728
I have installed quite a lot of workarounds and styles, will they get lost during an update to LS 3x.?