This piece seems to work as far as it goes for selecting tabs with manually entering ?tab=number in the url bar.
How about adding this ?tab=number to the url itself after clicking on each tab, so that the user could click, and then copy the url with the tab selector from the url bar.
Hey Shane, sorry to ask again.. but how can we make this code work for more than 3 tabs?
I have 5 now and I can select only up to the third with this code. I tried experimenting with the code but huh, JS is not my strength.