Scroll to bottom of a <div> with jQuery on page load (multiple <div>) -


i know has been answered here scroll bottom of div on page load (jquery), solution not working, when having more 1 <div> different heights.

$('.mycontent').scrolltop($('.mycontent')[0].scrollheight); 

is not working multiple <div> different heights!

see http://jsfiddle.net/4pflq/

try this:

$('.mycontent').each(function () {     $(this).scrolltop($(this)[0].scrollheight); }); 

fiddle demo


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -