JSFiddle - React, Tailwind, and code Playground

by tearex

HTML

<fieldset data-role="controlgroup" data-type="horizontal"  >
  <label>START HERE
    <input name="V1SET" id="item1zest1" type="radio" />
  </label>
  <label>OR HERE
    <input name="V1SET" id="item1zest2" type="radio" />
  </label>
</fieldset>
<script>

$('#item1zest1, #item1zest2').change(function(){


if ($('#item1zest1:checked').val() == 'true') {	   ccc=1   
}else{ccc=11}
document.DIAGNOSTICS.VARIABLES.value=(ccc)
 });
</script> 
<form name="DIAGNOSTICS" >
  <input type="text" name="VARIABLES"  id="thisone" size="35"  style="text-align:center" >
</form>