/* 
 * 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-cursos").validate({
    rules: {
        cveLic: {valueNotEquals: "default"},
        nomCurso: "required",
        cvePer: {valueNotEquals: "default"},
        estatus: {valueNotEquals: "default"}
    },
    messages: {
        cveLic: {valueNotEquals: "*Campo obligatorio"},
        nomCurso: "*Campo obligatorio",
        cvePer: {valueNotEquals: "*Campo obligatorio"},
        estatus: {valueNotEquals: "*Campo obligatorio"}
    }
});