JSFiddle - React, Tailwind, and code Playground
by John Doe
HTML
<div class="test">
</div>
CSS
.test{
/*background-image:url('https://jsfiddle.net/img/logo.png');*/
background-image:url('');
background-repeat:no-repeat;
height:45px;
}
JavaScript
if ($('.test').css('background-image') != 'none') {
alert('There is a background image');
}
if ($('.test').css('background-image') = 'none') {
alert('There is nothing');
}