jquery addClass/removeClass hide/show code not working
I've created the following code which will work in all browsers but IE (it takes too long to load). Any suggestions? I appreciate any help/suggestions.
$(document).ready(function(){
$('li#tab_monthly').addClass('on_m');
$('div#monthly').show();
$('li#tab_monthly').click(function(event){
$('li#tab_annual').removeClass('on_a');
$('li#tab_monthly').addClass('on_m');
$('div#annual').hide();
$('div#monthly').show();
});
$('li#tab_annual').click(function(event){
$('li#tab_monthly').removeClass('on_m');
$('li#tab_annual').addClass('on_a');
$('div#monthly').hide();
$('div#annual').show();
});
});