JSFiddle - React, Tailwind, and code Playground
by richbuff
HTML
<td> send
<input type="radio" name="authorized[]'.$c.'" id="send'.$c.'"value="1" checked>
</td>
<td> no
<input label="no" type="radio" name="authorized[]'.$c.'" id="no'.$c.'"value="no" >
<input name="auth[]" type="text" class="mailclass" id="auth'.$c.'" value="" />
</td>
JavaScript
var x='1'
$( "input:radio" ).each(function() {
$(this).click(function() {
x=$(this).val();
$('input.mailclass').val(x);
})
});