JSFiddle - React, Tailwind, and code Playground

HTML

Click anywhere in the beige box:

<div id="SomeControl" >
    <span id="theSPAN">
        <p id="theP" data-is-dirty="True">It is here</p>
    </span>
</div>

CSS

#SomeControl{margin:20px;background:wheat;width:30%;height:50px;}
#theP{background:cyan;}

JavaScript

$('#SomeControl').click(function() {
    var $myControl = $('#SomeControl');
    var xx = $myControl.find('[data-is-dirty]').attr('id');
    alert(xx);
});