Hi,
I have a form dispatched in several Jeasyui tabs.
when I submit my form on the last tab and forgot to fill a mandatory input in the first tab, nothing happen because validation function do not raise/focus on the fisrt tab to show the error.
is it possible to raise the tab containing the error ?
I saw a invalidHandler in JQuery but don't seems to work with Jeasyui :
$(function(){
$('#formAbonne').form({
ajax:false,
onSubmit:function(){
return $(this).form('validate');
},
invalidHandler: function(e, validator){
if(validator.errorList.length)
$('#tabs a[href="#' + jQuery(validator.errorList[0].element).closest(".tab-pane").attr('id') + '"]').tab('show')
}
});
});