JSFiddle - React, Tailwind, and code Playground
by subhash9
HTML
Yes <input type="radio" name="article" value="1" checked='checked'>
No <input type="radio" name="article" value="0">
<div id="send_to_yes">
<b>Number</b> <br><input type="text" name="number"><br><br>
</div>
JavaScript
$("input[type=radio]").change(function() {
if($(this).prop('value') == '1'){
$("#send_to_yes").show();
}
else {
$("#send_to_yes").hide();
}
});