I'm wondering how to make a button in one div scroll to an anchor in another div. The stucture of the anchor looks like this:
<a id="organisational_change"></a>
The jQuery that I have is:
$(document).ready(function(){
var consultancyLinks=["organisational_change","organisational_development","executive_coaching","executive_team_development","corp_social_responsibility"];
$("#sidemenu_consultancy #sidemenu_consultancy_btn").each(function(){
$(this).css( 'cursor', 'pointer' );
});
$("#sidemenu_consultancy #sidemenu_consultancy_btn").click(function(){
$('html, body, #content_text').animate({scrollTop: $("#"+consultancyLinks[$(this).index()])},800);
});
});
Any ideas?