Cannot make a div element automatically scroll down.
$('#div').scrollTop(1000)
This doesn't work, but if set on click it works:
$('btn').click(function()
{
$('#div').scrollTop(1000);
});
I need it to scroll down without clicking any button. What do I need to change?