jQuery Tools Linked Tabs

Wow, been a while since I last added something. I hope to update this blog more regularly in the future – and it’s not the first time I’ve said that either so hope I can keep it up this time.

Now this blog is a quick little trick for extending jQuery Tools tabs to control more than one set of child divs for whatever reason.

First I’ll post in my sample code: (Moved to JSFiddle, click here for full working interactive example)

So here the important parts to note is that there are 2 ways of achieving the effect depending on your needs.
If you only want to display the linked tab with certain tabs then just use it as is, if you have LOTS of tabs and do not want to put ID’s for all of them then use the commented 2 lines of code, note that you MUST have the some number of divs in both pane and pane2 for this to work.
I recommend you go play with it a bit as there is no substitute for hands on (I have comments in the relevant parts), enjoy and comment if you liked/used this!

About Simeon Cheeseman

I enjoy a wide variety of computer and board games, have a BSc in Computer Science and have played percussion for 18 years.

Posted on July 8, 2011, in jQuery, jQuery Tools. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: