Here is an example of my HTML code with an initial background image:
<div id="ffff" style="width: 200px; height: 200px; background-image: url('/uploads/backroundDefault.jpg')">sddsadsdsa<br>dffdsdfs</div>
Everything seems to be working fine at first. But then:
$(document).ready(function() {
$('#ffff').css('background-image', 'url(/uploads/lol.png) no-repeat');
});
Unfortunately, this change has no effect.