How to use Jquery to attack the name of all inputs and check for value
Current Code
Form:
...
<input type="text" name="nome[]" value="">
<input type="text" name="nome[]" value="">
<input type="text" name="nome[]" value="">
...
Javascript:
...
$('.cadastrar').on("click", function() {
var nomes = $('input[name="nome[]"]');
console.log(nomes);
});
...
I would have to check the value of each input and if there is any blank it would return false and an alert ..
I just stopped to check field by field. I could not continue.