-
Notifications
You must be signed in to change notification settings - Fork 467
Open
Description
whats wrong with my code, thanks for any suggest
<script>
$.validate({
form:'#formSemester',
validateOnEvent:true
});
var errors = [],
// Validation configuration
conf = {
onElementValidate : function(valid, $el, $form, errorMess) {
if( !valid ) {
// gather up the failed validations
errors.push({el: $el, error: errorMess});
}
}
},
lang = 'en'
;
$.formUtils.loadModules('security, date');
$('#Ctombol').on('click', function() {
// reset error array
errors = [];
if( !$(this).isValid(lang, conf, false) ) {
displayErrors(errors);
} else {
// The form is valid
$('#konfirS').modal('show');
}
});
</script>