Is there a way in jquery to count all empty inputs and textareas in a form, for the following types
checkbox, date, datetime, email, month, number, radio, tel, text
because every form has a js variable maxInput. if maxInput is 6 (form has 6 inputs) then if you count the inputs and it is 6 i know that all is filled. Does anybody knows how to complete this.
Suppose all inputs
has a class named: yourClass
then this may help you:
$('.yourClass').filter(function(){
return !$(this).val();
}).length;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With