开发者

IE - why it doesn't get changed?

I've a got a: it works in FF but not in IE problem with my jQuery code, here the little snippet of code

jQuery(this).click(function()
{
    jQuery.post(href + '&rnd=' + Math.random(), function(data,status)
    {
        jQue开发者_开发问答ry('.progress').show();

        if(status == 'success')
        {
            var d = jQuery('<div id="insertDiv" />').hide().append(data);
            var insert = jQuery(d).find('#contentframe').attr('id', 'insertFrame');
            jQuery('body #contentframe').after(insert).remove();
            jQuery('#insertFrame').attr('id','contentframe');
            var cf = jQuery('div.contentformular, div.update').clone().end().remove();

            jQuery('div.action').after(cf);
            jQuery('.progress').hide();
            //jQuery('html').after(data).remove();
        }
    })
}); 

As I mentioned, it works in FF but in IE only the jQuery('body #contentframe') is removed. Maybe someone has faced a similiar problem?

Cheers


Not sure if this is the whole problem, but you're missing a semi-colon on the end of the second to last line.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜