JSFiddle - React, Tailwind, and code Playground
by KelseyW
HTML
<p class="paraclass1" id="amazing1">
<span class ="pascal1">
<div class='pascal'>
<INPUT id= "chk1" value="on" type="checkbox" />
</div>
</span>
</p>
<p>
<label class='lblclass'>this is a label </>
</p>
JavaScript
$('#chk1').click(function(){
alert($(this).parents('p#amazing1').length)
alert($('#chk1').parent().parent().attr('class'));
});
alert($("body").html());