JSFiddle - React, Tailwind, and code Playground
by Lauro Moraes
HTML
<div class="abc">
<!-- esta Ă© a div que tem um background -->
</div>
CSS
.abc {
background-image:url("http://floridamemory.com/fpc/ffl/ffl1966.jpg");
width: 600px;
height: 200px;
border: 1px solid red;
}
JavaScript
$(function() {
$(".abc").each(function() {
var bg = $(this).css('background-image');
bg = bg.replace('url(','').replace(')','');
alert(bg);
});
});