JSFiddle - React, Tailwind, and code Playground
by chiragvidani
HTML
Radio 1<input type="radio" ID="rad1" name="radio1" /><br />
Radio 2<input type="radio" ID="rad2" name="radio1" />
<br />
Textbox 1<input type="text" ID="txt1" /><br />
Textbox 2<input type="text" ID="txt2" />
JavaScript
$('#rad2').click(function(){
$('#txt2').attr('disabled',true);
});
$('#rad1').click(function(){
$('#txt1').attr('disabled',false);
$('#txt2').attr('disabled',false);
});