The function is to click a button, the browser window then scrolls to the top of the page, then a class is added to a menu item (with CSS to make the sub menu appear). Then when the cursor leaves the sub menu, the class is removed to allow the sub menu to disappear.Can I make the following code shorter or more efficient? I have written it to work with Joomla and jQuery with no conflict.jQuery(document).ready(function(){    jQuery(#instruct-us-readmore).click(function(){        jQuery('html, body').animate({scrollTop:0}, 800);        setTimeout(        function() {            jQuery(#iceMenu_144 ul.sub_level_1).addClass(instruct-button-click);        },950);     });});  jQuery(document).ready(function(){        jQuery(#iceMenu_144 ul.sub_level_1).mouseleave(function(){            jQuery(#iceMenu_144 ul.sub_level_1).removeClass(instruct-button-click);    });      });
Scroll to top and addClass onClick - then removeClass on .mouseout
javascript;jquery