Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery check if input is empty on submit

var empty = true;
$('input[type="text"]').each(function() {
   if ($(this).val() != "") {
      empty = false;
      return false;
   }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #check #input #empty #submit
ADD COMMENT
Topic
Name
4+3 =