ElEditors, Interface administrators, Administrators
85,546
edits
mNo edit summary |
mNo edit summary |
||
Line 11: | Line 11: | ||
addOnloadHook(function(){ | addOnloadHook(function(){ | ||
$('div.tabdiv > | $('div.tabdiv > ul > li').click(function(){ | ||
$(this).parent().find('> li').removeClass('active').addClass('inactive'); | |||
$(this).removeClass('inactive').addClass('active'); | |||
$(this).parent().parent().find('> div').hide(); | |||
$(this). | $($(this).find('> a:first').attr('href')).show(); | ||
$(this). | |||
}); | }); | ||
$('div.tabdiv > ul > li:first').click(); | |||
}); | }); | ||
/* | /* |