ie8支持jq的html,php - jQuery .html() doesn't work in IE8 - Stack Overflow

I have an AJAX response that returns information using $_GET and is then set as the HTML of a container. This works in Chrome, Safari, FireFox, Opera, but not IE8.

$(function() {

$('#content .entry-content a.mais-menos').click(

function(){

$('#content .entry-content a.mais-menos').css('background-position','bottom left');

if($(this).siblings('.descricao-campanha').css('display')=='block'){

$(this).css('background-position','bottom left');

$(this).siblings('.descricao-campanha').slideUp(1000);

}else{

$('#content .entry-content .descricao-campanha').slideUp(1000);

$(this).css('background-position','top left');

$(this).siblings('.descricao-campanha').slideDown(1000);

var mae = $(this).siblings('.descricao-campanha');

var codigo = $(this).siblings('.cdPost').attr('value');

if (mae.children('.carregando').is(":visible")){

$.get('= get_bloginfo("url") ?>/get_associado.php', {cd:codigo}, function(retorno) {

// mae.children('.carregando').hide();

mae.html(retorno);

// alert(retorno);

});

}

}

return false;

}

);

});

If I alert retorno I can see that the data has been returned, but when I append it to the div, it fails in IE8.

Can someone please help me understand why this fails and how to resolve it?

This is what Retorno return, in case of no image.

Fone: 67 3245 3330

Praça Das Nações, 330

Bairro Centro

ANASTACIO - MS

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值