JSFiddle - React, Tailwind, and code Playground

by bogdan_vq

HTML

<div id="img" style="background-image: url=('http://graph.facebook.com/100002511881419/picture?type=large'); height: 25px; width: 25px;"></div>

JavaScript

var el = document.getElementById('img');

if(el.style.backgroundImage.indexOf('default') > 0) {
    alert("please change image");
}