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");
$("#image").triggerHandler('DOMModified');
});
function CheckHeight()
{
var img_w = $('#image').height();
if (img_w > 100) {
alert("height increased");
}
}
$('#image').bind("DOMModified", CheckHeight);