I’m using the tabs of jQuery UI: http://jqueryui.com/demos/tabs/
How to update the current url of the browser when the user click on a different tab by adding the anchor link to it:
ex: url.html#tab-4 and pushing the current history of the browser at the same time.
Thank you!
This should get what you want (using jQuery UI 1.8, in version 1.9 and later use the activate event, see other answers for code example). I used the sample HTML in jQuery UI demos;