$jq('#divWithOverflowAuto').animate({
scrollTop: $jq('#divWithOverflowAuto')[0].scrollHeight}
);
}
Or you can use: $jq('#divWithOverflowAuto').animate({
scrollTop: $jq('#divWithOverflowAuto').attr('scrollHeight')}
);
}
Scroll to the top of the div:
$jq('#divWithOverflowAuto').animate({
scrollTop: 0 }
);
}
Thank you!
ReplyDeleteThis help me so much! :D
nice
ReplyDelete