I am currently investigating replacing the tabs provided by a Struts 1 tag library with the tabs provided by jQuery UI. I have successfully managed to get the tabs integrated with the existing application but I am struggling on how to set the selected tab using a parameter on the incoming URL, that is myurl.com/action.do?selectedTab=SecondTab.
I am a newcomer to JavaScript and jQuery; what are some pointers on where to start?
Using http://www.mathias-bank.de/2007/04/21/jquery-plugin-geturlparam-version-2:
From documentation:
Signature:
Select a tab, as if it were clicked. The second argument is the zero-based index of the tab to be selected or the id selector of the panel the tab is associated with (the tab’s href fragment identifier, e.g. hash, points to the panel’s id).