- Posts: 9
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
$("[id^='question'].mandatory").each(function() { $(this).find('.text-item:not(.other-text-item):not(.slider-item):not(.comment-item) input:text,.text-item:not(.other-text-item):not(.comment-item) textarea,.dropdown-item select,.radio-item input:radio').attr('required',true); });
Bigred01 wrote: I usually store the progress of a media file in a hidden input so i can reference it again on page load. So when a media file has fully finished playing, store something like 'done' in a hidden field. Then when the page loads and I see done, there is no need to force them to view/listen to the media again, they can just start answering where they left off.
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ document.getElementById("myAudio").addEventListener('ended',myHandler,false); function myHandler(e) { if(!e) { e = window.event; } $('#answer{SGQ}').val('done'); $("#answer{SGQ}").trigger('keyup'); } }); </script>