I'm currently experiencing an issue with an ajax script. Here is the code I am using:
<script type="text/javascript">
$(document).ready(function() {
$('#savecolor').click(function(){
var myVar = 'data='+$('#color').val();
$.ajax({
type: "POST",
url: "addcolor.php",
data: myVar,
success: function(msg){
//alert(myVar);
$('#message').html('The background color has been changed successfully.');
$(window.parent.document).find('#set').css('background', msg);
//$('#set').css('background', msg);
// window.parent.location.reload();
}
});
});
</script>
Although this code works well, it seems to have trouble in IE when utilizing jquery-1.7.
If anyone can provide assistance, I would greatly appreciate it.