I am trying to validate a form and to do that i have set a condition where 2 dropdowns need the indicated value. however when i try it out the condition only happens when i select the oposite value of the second dropdown and even when i fullfill the condition it wont send out the form.
here is my validation
if (($("#ddlTipoViat").val() == "Internacional") && ($("#ddlTipoCom").val() == "Con viáticos")) {
var exp = new type('not [0]');
if (exp.test($("#ddlPais").val())) {
return true;
}
else {
return false;
}
}
};
i call it from here
Pais: {
identifier: 'ddlPais',
rules: [{
type: 'paisTipoA',
prompt: 'Debe haber un Pais'
}]
},
I would really appreasite some help here because i dont know why the $$ does not work
Aucun commentaire:
Enregistrer un commentaire