- Posts: 15
- 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(){ window.setTimeout(function() { $('.survey-question-answer li:last').show(); $('.survey-question-answer input[type=hidden]:eq(0)').attr('value', 'on'); }, 50); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ var itemCount = $('survey-question-answer li').length; itemIndex = Number(itemCount-2); window.setTimeout(function() { $('survey-question-answer li:eq('+itemIndex+')').show(); $('survey-question-answer li:eq('+itemIndex+') input[type=hidden]:eq(0)').attr('value', 'on'); $('survey-question-answer li:last').show(); $('survey-question-answer li:last input[type=hidden]:eq(0)').attr('value', 'on'); }, 50); }); </script>