This is my code in codeigniter application. In Mozilla the add_PM div will be overwritten by the content of the variable msg. But in IE the variable msg has content but the add_PM div is not overwritten. So nothing will be displayed. Is there is any problem in my code?
function addPjctMngr(){
$.ajax({
type: "POST",
url: "<?php echo base_url();?>index.php/admin/addProjectManager",
success: function(msg){
$("#add_PM").html(msg).show();
}
});
}
When I tried to use this code
$("#add_PM").html('');
$("#add_PM").html(msg).show();
Nothing will happen in IE.
Just a thought, check for html tags whether closed properly or not, that might be a problem as well in IE. Hope it helps