JSFiddle - React, Tailwind, and code Playground

by DinoMyte

HTML

<div id="image">
</div>
<a href="#">Click to increase height</a>

CSS

#image
{
  border: 1px solid green;
}

JavaScript

$('a').click(function()
{
  $('#image').css("height","200px");
});


function CheckHeight()
{
  var img_w = $('#image').height();  
  if (img_w > 100) {
        alert("height increased");
    }
}

$('#image').bind("DOMSubtreeModified", CheckHeight);