Ask the community, share ideas, and connect with other LimeSurvey users!
Log in
Forgot your password? Forgot your username?
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question'+{QID}+''); // Interrupt the submit process $('#movenextbtn, #movesubmitbtn').bind('click', function () { // Reset the errors var commentError = 0; $('li.answer-item', thisQuestion).css('background-color', 'transparent'); // Check for invalid comments $('input.checkbox:checked', thisQuestion).each(function(i) { var thisItem = $(this).closest('li.answer-item'); var thisComment = $('input[type="text"]', thisItem); if($(thisComment).val().length < 6) { $(thisItem).css('background-color', 'pink'); commentError = 1; } }); // Comment failed so abort submit if(commentError == 1) { alert("Comments must be at least 5 characters."); return false; } }); }); </script>
Online-surveys for every purse and purpose