I have no idea how to do this and I need assistance please. I am using asp.net and I have a div with overflow:auto set. The div shows terms and agreements. I also have a asp.net checkbox control with visible set to "false". What I want is a way to make checkbox visible = "true" only after the user scrolls all the way to the bottom. I was trying to add a javascript function called when onmouseup was triggered but I don't think this code is working and I have no idea as to how to make the checkbox control visible = "true" from the javascript code.
function checkScrollPosition(elem) {
if(elem.scrollHeight<(elem.scrollTop+elem.offsetHeight)) {
document.getElementById("CheckBox1").style.visibility = "visible";
}