Hi everyone, I have the below piece of code it works perfectly in Chrome, Firefox (pc) and Safari (mac & pc).
But I can't get it to work in IE 8 or Firefox 3.5.5 on OS X $('#licenseTerms').scroll(function (){ var a = $(this).scrollTop() / 15; var b = $('#licenseTerms').height(); //console.log(a); //console.log(b); if ( a >= b ) { $('#acceptLicenseTerms').removeAttr("disabled"); } }); #licenseTerms is a div with auto overflow. #acceptLicenseTerms is a disabled checkbox. Does anyone have any ideas why it isn't working? Kind regards, Richard