Answers for "jquery don't submit form if empty"

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
0

jquery don't empty specific form field after submit

form.find('textarea,input,select').not('input[name="INPUT_NAME_1"],input[name="INPUT_NAME_2"]').val('');
Posted by: Guest on January-19-2021

Code answers related to "jquery don't submit form if empty"

Code answers related to "Javascript"

Browse Popular Code Answers by Language