JSFiddle - React, Tailwind, and code Playground

by John Doe

HTML

<div class="two">
no
</div>

<div class="the">
the
</div>

CSS

.two{
  background-image: url('');
}


.the{
  background-image: url('');
}

JavaScript

jQuery(document).ready(function ($) {
   
   if ($('.two').css('background-image') != 'none') {
          $(this).html('yes').addClass('PDD_Class');
   }
            
  if ($('.the').css('background-image') != 'none') {
              $(this).html('hell').addClass('PDD_ya');
              
    } else {
             $(this).html('YIKES').addClass('PDD_none');
  }
       
});