With this function you can enable the “Agree” checkbox at the end of the page only if the user scrolls to the end of the “Terms” of a div box.

$(window).scroll(function () {
            if ($(document).height() <= $(window).height() + $(window).scrollTop())
                $("#chk", window.parent.document).removeAttr("disabled");
 });