JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<img class="size" src="">
<input name="rdo" id="rdo" type="radio" value="1">
<div>
<label>radiobutton</label>
<div>
<a href="javascript:void(0)">link</a>
<input name="abc" id="abc" type="hidden" value="1">
</div>
</div>
</div>
JavaScript
$(function() {
var find = $('#abc').parent().parent().parent().find("input[type='radio']").length;
var closest = $('#abc').closest("input[type='radio']").length;
//alert(find);
//alert(closest);
});