Use jQuery to find out if a <div> has a background image?
2 answers
The default value for background-imageis "none". Therefore, you can do it as follows:
if ($('#page').css('background-image') != 'none') {
alert('There is a background image');
}
+17