What part doesn't work?

Do it get to the (a >=b) check?
Something else?


On Dec 9, 6:12 am, Richard McKenna <richardofmcke...@googlemail.com>
wrote:
> 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

Reply via email to