jQuery(document).ready(function(){ jQuery('.product-desc a').click(function(){ jQuery([document.documentElement, document.body]).animate({ scrollTop: jQuery(".detail-tab-accordion .item-toggle-tab:last-child").offset().top - 600 }, 2000); jQuery(".detail-tab-accordion .item-toggle-tab:last-child h3").trigger('click'); }); });