Textfields check in feedback form

This commit is contained in:
Thomas FORGIONE 2015-10-02 16:04:47 +02:00
parent 47818c444e
commit 838871b3c2
1 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,11 @@ block content
allAnswered = false; allAnswered = false;
} }
}); });
$("input:text").each(function(){
if ($(this).val().length === 0) {
allAnswered = false;
}
});
if (!allAnswered) { if (!allAnswered) {
alert('You did not answer all the questions'); alert('You did not answer all the questions');
return false; return false;