JSFiddle - React, Tailwind, and code Playground
by mblase75
HTML
<div>
</div>
CSS
div{
background-image: url('http://images.google.com/intl/en_ALL/images/logos/images_logo_lg.gif');
width: 276px;
height: 110px;
}
JavaScript
$(function() {
$("div").click(function() {
var bg = $(this).css('background-image');
bg = bg.replace('url(','').replace(')','');
alert(bg);
});
});