/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$.validator.addMethod("valueNotEquals", function (value, element, arg) {
    return arg !== value;
}, "CAMPO REQUERIDO");

// validate signup form on keyup and submit
$("#formLogIn").validate({
    rules: {
        tipoUsuario: {valueNotEquals: "default"},
        usuario: "required",
        pwd: "required"
    },
    messages: {
        tipoUsuario: {valueNotEquals: "*Campo obligatorio"},
        usuario: "*Campo requerido",
        pwd: "*Campo requerido"
    }
});