Response title
This is preview!
I have a div set up like this
<div id='y' style='background-image: url(./randomcolor.php?ibase=<?php echo $entity->name; ?>) ....
Correct me if I am wrong but I think you would do this in a simple case by saying
$('#x').css('background-image',$('#y').css('background-image'));
$(document).ready(
function() {
$('#submitRating').click(
function($e) {
$e.preventDefault();
//console.log("INSIDE");
$.post(
'/bla/bla/whatever',
$('form :input').serialize(),
function(xml) {
console.log(xml);
if ((a=parseInt($(xml).text())) > 0) {
alert('Rating Successfully Updated');
} else {
alert('Rating Not Successfully updated answer = ' + a);
}
},
'xml'
);
}
);
}
);
© 2013 jQuery Foundation
Sponsored by and others.