- Posts: 8
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Some? Can you give me a Questioncode where you see an issue? And one without an issue?tpartner wrote: I am seeing some order discrepancies using the latest version.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // Loop through the questions $('.array-flexible-row').each(function(i){ var qID = $(this).attr('id').replace(/question/, ''); var thisQuestion = $('#question'+qID); // Loop through the sub-question codes var i; for (i = 1; i < 5; i++) { var thisRow = $('tr[id^="javatbd"][id$="X'+qID+'SQ00'+i+'"]'); // Reposition the corresponding array row $('table.subquestion-list tbody:eq(0)', thisQuestion).append(thisRow); // Fix the row class $(thisRow).removeClass('ls-even, ls-odd'); if(i % 2 == 0) { $(thisRow).addClass('ls-even '); } else { $(thisRow).addClass('ls-odd '); } } }); }); </script>