JSFiddle - React, Tailwind, and code Playground

by Alfie

HTML

<div id="scroller">12314214142142141<input/></div>

CSS

#scroller{
    height:100px;
}

JavaScript

var scrollerDivHeight=$('#scroller').height();
if(scrollerDivHeight==100){
    $("#scroller").empty();//works
    $('#scroller').html();//works
}