$(document).ready(function() {
$('#picture').css('height', '666px');
$('#picture').click(function () {
$(this).css('background-image', "url('../images/picture_2.jpg')");
});
});
in the above code, the height
is successfully changed to 666px but the background image does not change at all (remains the original one).
When I change the background-image
to 'none' instead of "url('../images/picture_2.jpg')" it does make the background image disappear though.
What am I doing wrong?