JSFiddle - React, Tailwind, and code Playground
HTML
<input type='radio' value='one'></input>
JavaScript
var next = $("input").next()[0];
if(next) { alert(next.tagName); }
else { alert( "No next tag"); }
<input type='radio' value='one'></input>
var next = $("input").next()[0];
if(next) { alert(next.tagName); }
else { alert( "No next tag"); }