[jQuery] Getting a div with scroll bar to stay scrolled down
Hi all,
I have a div that will refresh itself and the scroll bar just won't
stay down. The solution I've found is:
var objDiv = document.getElementById("divname");
objDiv.scrollTop = objDiv.scrollHeight;
This doesn't work:
$('#divname').scrollTop = $('#divname').scrollHeight;
Therefore is there a more jquery-like way of doing it other than using
plugins perhaps?
Thanks.
Eric