I'm using twitter bootstrap's tab mechanic for my site. On each tab, I have 
a lot of content that you can scroll through. But when you click on a new 
tab, it leaves you that far down on the page or a percentage of the way 
down. I'd like for it to take you back to the top of the content of the new 
tab section.

I'm using this code:

// to handle the front page Get Started button
>
> $(document).ready(function(){
>
>   $("#gotoPublication").click(function(){
>
>     $('#myTab a[href="#portfolio1"]').tab('show');
>
>   });
>
>   $("#gotoAdvertisement").click(function(){
>
>     $('#myTab a[href="#portfolio2"]').tab('show');
>
>   });
>
>   $("#gotoLogoIdentity").click(function(){
>
>     $('#myTab a[href="#portfolio3"]').tab('show');
>
>   });
>
>   $("#gotoWebGraphic").click(function(){
>
>     $('#myTab a[href="#portfolio4"]').tab('show');
>
>   });
>
> });
>
>
Any help would be appreciated.

Thanks,

Matt 

Reply via email to