JSFiddle - React, Tailwind, and code Playground
by AThomas92
HTML
<input type="radio" value="Yes" name="rdo" />Yes
<input type="radio" value="No" name="rdo" checked/>No
<br /><br />
<textarea rows="4" cols="50" disabled></textarea>
JavaScript
$(document).ready(function(){
$(":radio[value=Yes]").click(function(){
if ($(this).attr('checked','true')) {
$(this).next('textarea').removeAttr('disabled');
}
});
});