How to use Tabs.js


To use Tabs.js we format our HTML as such:

//The tabs is the links that will make the entire tabs function work
//The "for" attribute will be the item that makes the entire process work
<tabs>
    <li for="post_content" class="active"> Posts</li>
    <li for="vote_content">Votes</li>
    <li for="reviews_content">Reviews</li>
</tabs>


<div id="post_content"></div>
<div id="vote_content"></div>
<div id="reviews_content"></div>​

Did you find this article useful?