JSFiddle - React, Tailwind, and code Playground
HTML
<div style="display:none;">
<textarea class="item">parent is hidden. width() represents width in px hovewer it's in percent.</textarea>
</div>
CSS
.item {
width: 224%;
}
JavaScript
$(document).ready(function() {
alert($('.item').width());
});