Hi, this question deals with the one page checkout page.
I want the browser to autoscroll down to the shipping methods section after clicking the continue button on the billing address section(with ‘SHIP TO THIS ADDRESS’ checked). The autoscroll should happen right after the shipping methods section gets populated.
The below code works, but not in the correct order - the scrolling occurs first, then the ajax request for the billing address gets processed, and finally the shipping method section is expanded/populated. I do not want that - I want the ajax request to complete and the shipping method section to be populated before scrolling down.
Is there someway to delay the scroll until the ajax request is finished and the shipping method section is expanded?
var j = jQuery.noConflict();
//Click event handler for continue button on billing address section
//check to see if 'SHIP TO THIS ADDRESS' radio button is checked
//animate scroll to shipping method section