John Magnolia
John Magnolia

Reputation: 16823

jQuery custom tabs with next/prev links

I am convert the jquery-ui tabs into a more basic version that is easily customisable although I have come across a couple of problems:

I have tried to also write the code so that it adds the tab ID to the hash of the URL allowing direct bookmarking to a tab if the URL has a hash on the end.

JS Fiddle code can be viewed here: http://jsfiddle.net/pmnzT/21

Upvotes: 0

Views: 584

Answers (1)

sirLisko
sirLisko

Reputation: 1494

I've fixed next and prev links here you could find a working version. Second next link didn't appear because there is an error in the html, you inverted tab2 with tab4 now it's fixed.

For remember your position why you don't use the localstorage? Is a lighter solution than use cookies. here some info :)

For transform your code in a plug-in you could check this out link.

Upvotes: 1

Related Questions