JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<input id="PrdQty" type="hidden" value="1">
<div class="divtoCheck" />
</div>
CSS
div
{
width:100px; height:30px; border:1px solid black;
}
JavaScript
$(function(){
$(".divtoCheck").click(function(){
var child=$(this).parent().find("input[id*='Qty']")
alert(child.attr("id"));
});
});