Simple jQuery Tabs
November 12, 2014



I can’t exactly say why, but I’ve been really into doing little CSS code snippets like this tabs example lately. The tabs are a single content area with multiple panels, each associated with a header in a list. Clicking on the header will display the corresponding content for that header. Note that the JavaScript requires jQuery, so make sure you have it if you want to use this example.

See the Pen Simple jQuery Tabs by Alex Dobson (@SufferMyJoy) on CodePen.0

HTML

CSS

JavaScript

Remember to make sure you have jQuery working to get the following JavaScript to work.

Let me know if you like or dislike the code snippets I’ve been doing lately! If you like them then I’ll do more and if not I’ll go back to more programming oriented tutorials. As always thank you for reading and please share it around as much as you can! Please feel free to put any suggestions or ideas for future tutorials in the comments section below.


Comments