Stop jquery TABS from jumping / scrolling up when clicked on?
The engine I use calls the jquery tabs.js script to handle the tab functions. Problem is that anytime the tabs are at the top of the page and you click on a link, they quickly scroll back down towards the bottom of the page. I've been trying to solve this problem for hours and all solutions point to similar answers, but none work for me. $.fn.tabs = function() { var selector = this; this.each(function() { var obj = $(this); $(obj.attr('href')).hide(); $(obj).click(function() { $(selector).removeClass('selected'); $(selector).each(function(i, element) { $($(element).attr('href')).hide(); }); $