JSFiddle - React, Tailwind, and code Playground
by cgack
HTML
<div id="blah">
<div>cheese</div>
</div>
<div id='out'></div>
JavaScript
$(document).ready(function() {
var blah = $("#blah").children().closest("div[id!='']");
$("#out").html(blah.attr('id'));
});