I've got some trouble with my jQuery and was looking for some solutions to add something to my already existing slideDown
function.
What looked very interesting to me is this question/answer from 2010 http://stackoverflow.com/questions/4034659/is-it-possible-to-animate-scrollop-with-jquery
The difference to that question is that I'm looking for a solution to scrollTop
each time to a different <a> anchor
.
In my example below, the <a href"#">
is suppose to move to the top.
Is that possible?
HTML
<div class="next_btn" id="next_btn_show_step_3">
<a href="#"><?php echo $lang ['next']; ?></a>
</div>
<article class="order_form_step_3" id="banner_step_3">
</article>
jQuery
$(document).ready(function(){
$("#banner_step_3").hide();
$("#next_btn_show_step_3").click(function(e){
$("#banner_step_3").slideDown(500);
e.preventDefault();
});
});