Title: switch to focus a tab on a validation error Post by: fguibert on March 01, 2019, 04:19:08 AM 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 : Code: $(function(){ Title: Re: switch to focus a tab on a validation error Post by: jarry on March 04, 2019, 07:22:00 AM Please refer to this code.
Code: $('#ff').form('submit', { Title: Re: switch to focus a tab on a validation error Post by: fguibert on March 04, 2019, 08:45:20 AM thanks a lot jarry, it works great !
|