$("a[rel=profile]").live('click',function() {
var profileURL = $(this).attr('href')
$.ajax({
url: profileURL,
success: function(data) {
alert(data)
$("#profile").html(data);
$("#profile").fadeIn();
}
});
return false;
})
Can anyone tell me what is wrong with this code, when I click the link with rel=profile it fires the alert() with the remote URL content but doesn't load it into the div and then fadeIn()
Thanks in advance :)
datais expected to be. What are you getting back?dataType: "html"from your ajax declaration.