JQuery Animate

This script will scroll to id tag answerCode:

$('html, body').animate({scrollTop: $('form#answerCode').offset().top}, 'slow');

Leave a Reply