JSFiddle - React, Tailwind, and code Playground
by abuhamzah
HTML
<div id="content"></div>
JavaScript
if ( $.trim( $('#content').text() ).length == 0 ) {
alert($('#content').text().length);
}
by abuhamzah
<div id="content"></div>
if ( $.trim( $('#content').text() ).length == 0 ) {
alert($('#content').text().length);
}