I was wondering if the following is possible. I currently have code that opens a DIV at the bottom of the page using jquery. It is so simple:
$("#country_slide").slideToggle();
Then I have an example code that scrolls to the bottom of the page (just an example):
$('html, body').animate({scrollTop:$(document).height()}, 'slow');
The problem is that this div that opens will be at the bottom of the page when it expands, so I want it to not only open, but also scroll down the page to show the div now opening when it opens.
I can only figure out how to fully expand the div, and then scroll to the available area. I want both processes to start simultaneously, and not one after another.
This is possible with jquery, and if so, can someone explain how to do this.
source share