it can be easier than that, not so many variables to worry about :)
right before
$("#relatedTabs").tabs();
put
$("#relatedTabs > ul a").attr("href", function() {
if ($(this).attr("href").indexOf("#") > -1) { return "#" + $
(this).attr("href").split("#")[1]; } else { $(this).attr("href"); }
});
On Jan 11, 2:11 pm, Coxy <[email protected]> wrote:
> tabLinks = $('#relatedTabBar li a');
> numOfTabs = tabLinks.length;
>
> for (index = 0; index < numOfTabs; index ++)
> {
> oldAnchor = $(tabLinks[index]).attr('href');
> hashPos = oldAnchor.indexOf('#');
> newAnchor = oldAnchor.substr(hashPos);
> $(tabLinks[index]).attr('href', newAnchor);
>
> }
>
> Sorry code was wrong before