Jquery script failing only for IE8

Jquery script failing only for IE8

I am using jquery (1.8) to load data into a division using ajax. The data returned by the first ajax call is a set of html radio choices, followed by an empty divisions (say 'packagelist'). 

Clicking on any of these radio options makes another ajax call (function processSubgroup) and the html data returned by this call is to be loaded into the previously loaded division 'packagelist'. 

My jquery script is as follows....

function processSubgroup(url, val)
{
    $.post(
        url,
        {value:val},
        handlePackageList
    );
}

function handlePackageList(data)
{
    $('#packagelist').html(data);
    $('html').animate({scrollTop:$(document).height()}, 'slow');
    $('html body').animate({scrollTop:$(document).height()}, 'slow');
}

This is working perfectly for all browsers except IE8.

I have tested the function to confirm that the correct data is indeed being fetched by the function and is being received by the handlePackageList function. However, it does not display in the division loaded by the previous ajax call.

Can anyone help? As mentioned it is working perfectly in all browsers except IE8.

Thanks