/* 
 * 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;
}, "Elige una opción");

// validate signup form on keyup and submit
$("#formulario-credencial").validate({
    rules: {
        folio: "required",
        fechaA: "required",
        fechaB: "required",
        ideAlu: {valueNotEquals: "default"}
    },
    messages: {
        folio: "Campo obligatorio.",
        fechaA: "Campo obligatorio.",
        fechaB: "Campo obligatorio.",
        ideAlu: {valueNotEquals: "Campo obligatorio."}        
    }
});