- Posts: 16
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Identify the day of the week var todayDate = new Date(); var weekDay = todayDate.getDay(); // Move the array rows $('tr.answers-list:lt('+weekDay+')', thisQuestion).appendTo($('table.subquestion-list tbody:eq(0)', thisQuestion)); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Identify the day of the week var todayDate = new Date(); var weekDay = todayDate.getDay(); var reverseWeekDay = 6-weekDay // Move the array rows $('tr.answers-list:lt('+(reverseWeekDay)+')', thisQuestion).appendTo($('table.subquestion-list tbody:eq(0)', thisQuestion)); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Identify the day of the week var todayDate = new Date(); var weekDay = todayDate.getDay(); // Move the array rows $('table.subquestion-list tr[id^="javatbd"]:lt('+weekDay+')', thisQuestion).appendTo($('table.subquestion-list tbody:eq(0)', thisQuestion)); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Identify the day of the week var todayDate = new Date(); var weekDay = todayDate.getDay(); var reverseWeekDay = 6-weekDay // Move the array rows $('table.subquestion-list tr[id^="javatbd"]:lt('+(reverseWeekDay)+')', thisQuestion).appendTo($('table.subquestion-list tbody:eq(0)', thisQuestion)); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Identify the day of the week var todayDate = new Date(); var weekDay = todayDate.getDay(); var reverseWeekDay = 6-weekDay // Move the array rows $('table.table-multi-num tr[id^="javatbd"]:lt('+(reverseWeekDay)+')', thisQuestion).appendTo($('table.table-multi-num tbody:eq(0)', thisQuestion)); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Identify the day of the week var todayDate = new Date(); var weekDay = todayDate.getDay(); // Move the array rows $('table.table-multi-num tr[id^="javatbd"]:lt('+(weekDay)+')', thisQuestion).appendTo($('table.table-multi-num tbody:eq(0)', thisQuestion)); }); </script>