O método jQuery .ajax no IE7 e IE6 não está funcionando, mas está funcionando bem no Firefox
Isso está relacionado ao meu post anterior:
Método jQuery .load causando atualização de página AJAX
Alterei minha implementação para usar o método .ajax em vez de .load e funciona bem no Firefox, mas não no IE7 ou IE6:
$('ul#coverTabs > li > a').live('click', function(event) {
// Find href of current tab
var $tabValue = $(this).attr('href');
$.ajax({
type: "GET",
cache: false,
dataType: "html",
url: $(this).attr('href'),
success: function(data){
$(data).find('.benefitWrap').each(function(){
var $benefitWrap = $(this).html();
$('.benefitWrap').replaceWith($('<div class="benefitWrap">' + $benefitWrap + '</div>'));
});
}
});
event.preventDefault();
});
Isso está me matando, já que levou séculos para chegar tão longe.
Alguma idéia de onde estou errado?