Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- See additional pasties: jQuery Tabs Markup and jQuery Tabs Styles
- */
- $('ul.tabs').each(function() {
- $(this).find('li').each(function(i) {
- $(this).click(function() {
- $(this).addClass('current').siblings().removeClass('current');
- var p = $(this).parents('div.tabs-wrapper');
- p.find('div.box').hide();
- p.find('div.box:eq(' + i + ')').fadeToggle('fast');
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement