Jquery Show & ScrollTop (or ScrollTo)
Just as the topic says I'm trying to get a link to open a hidden div then scroll to it. I have the first part taken care of. As for the scrollTop or ScrollTo function I've been try
Solution 1:
Simple example, no plugins:
$("#a").click(function() {
$('html, body').animate({
scrollTop: $("#b").offset().top
});
return false;
});
Post a Comment for "Jquery Show & ScrollTop (or ScrollTo)"