idtabs

jQuery idTabs plugin tab click function

混江龙づ霸主 提交于 2019-12-24 05:03:07
问题 When using the idTabs jQuery plugin how do you add function that is called when a tab is clicked? The documentation says this (but gives no example): click (function) Function will be called when a tab is clicked. ex: $(...).idTabs(foo) If the function returns true, idTabs will show/hide content (as usual). If the function returns false, idTabs will not take any action. The function is passed four variables: The id of the element to be shown an array of all id's that can be shown the element