Vote count:
0
I was wondering why my javascript validation does not pass with my input. Here is my code:
$.each($('#form').serializeArray(), function(i, field) {
if((field.value == 0)){
validation = "false";
}
values[field.name] = field.value;
});
if(validation == "false"){
return false;
}
Its simple javascript validation, my input is this. Here is my code:
<input type="checkbox" name="id[]" multiple="multiple" value="1" />
Basically I can not get my input to validate an pass the name right... Why is that?
asked 52 secs ago
Aucun commentaire:
Enregistrer un commentaire