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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -