Answers for "jquery code to check whether input feild is empty or not"

1

jquery check if input is empty on submit

var empty = true;
$('input[type="text"]').each(function() {
   if ($(this).val() != "") {
      empty = false;
      return false;
   }
});
Posted by: Guest on March-10-2021

Code answers related to "jquery code to check whether input feild is empty or not"

Code answers related to "Javascript"

Browse Popular Code Answers by Language