javascript - How to force 'select' event in jQuery Tabs if tab already selected? -
the main issue if tab selected 'select' event doesn't fire if set same tab id again. reason required in update content located in tab. need way fire 'select' if specify selected tab id.
in theory should work like:
tabcontrol.tabs('select', -1); tabcontrol.tabs('select', selectedtab);
but 'select' takes 0 based index, doesn't reset tabs desired , doesn't raise event again.
any solution?
i wouldn't recommend selecting tab twice because need reload contents. instead solved same issue calling tabs() 'load' method instead of 'select'.
var selectedtab = tabcontrol.tabs('option', 'selected'); tabcontrol.tabs('load', selectedtab);
Comments
Post a Comment