jquery not working in IE but fine in FF
This works p开发者_开发知识库erfectly in FF and Safari but not in IE... Here is the function:
function my_totals(){
$.ajax({
type: "GET",
url: "ajax.php",
data: "action=my_items",
success: function(data){
$("#usage").html(data);
}
});
}
You can look here
Karl Swedberg said:
one possibility is that you're trying to inject invalid markup with .html(). I noticed this causing problems with a plugin I wrote. For example, inserting something like
<div>
this is a div with no closing div tag caused IE to churn
Also see this post
I hope it helps you...
精彩评论