/* 
 * 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;
}, "Value must not equal arg.");

// validate signup form on keyup and submit
$("#form-titulacion").validate({
    rules: {
        apePat: "required",
        nomAlu: "required",
        curp: "required",
        sexAlu: "required",
        telefonoCelular: "required",
        cerSec: {activo: false},
        ideCordinador: {valueNotEquals: "default"},
        fecEgr: "required",
        nivel: {valueNotEquals: "default"},
        cveCar: {valueNotEquals: "default"}
    },
    messages: {
        apePat: "Campo obligatorio",
        nomAlu: "Campo obligatorio",
        curp: "Campo obligatorio",
        sexAlu: "Campo obligatorio",
        telefonoCelular: "Campo obligatorio",
        cerSec: {activo: "Campo obligatorio"},
        ideCordinador: {valueNotEquals: "Campo obligatorio"},
        fecEgr: "Campo obligatorio",
        nivel: {valueNotEquals: "Campo obligatorio"},
        cveCar: {valueNotEquals: "Campo obligatorio"}
    }
});