Highlight the jquery tab when error occured validate with jquery validation plugin -
I have a form with 3 tabs using jquery UI / TABS. To validate the form im using the jquery validation plugin and how to press the required field error in the text box of my other tab, how to highlight the second tab, the user can see that
How about any help coming
related to
Just click on the second tab Find and add some CSS class to it.
Given that you have created tabs like this:
$ ("#example"). Tab (); You can easily "select" any tab and add some squares to highlight it in some way (to add the class to the third tab:
$ ("#example> ul> gt: li: nth-child (3)"). AddClass ('my_tab_highlight'); Of course you To be consistent with my_tab_highlight, there is some CSS CSS class, for any visual indication. Also, after clicking on the third tab you probably want to remove my_tab_highlight class.
Comments
Post a Comment