- Posts: 60
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
trivender wrote: Past below code in question text source.If it will not work then give me survey link and question ID.
<script>
$(document).ready(function(){
$errorDiv = $('<br><div class = "errormandatory"></div>')
$('span.questionhelp:eq(0)').append($errorDiv)
$('button#movenextbtn').click(function(){
if($('textarea').val().trim() == "" ){
$('div.errormandatory').text('Please provide comment in box')
return false;
}
});
});
</script>