JSFiddle - React, Tailwind, and code Playground

by TCloud

HTML

<div class="radio">
        <input type="radio" name="option1" id="radio3" value="100" />
        <label for="radio3" id="ohund">100</label>
        <input type="radio" name="option1" id="radio4" value="500" />
        <label for="radio4" id="fhund">500</label>
 </div>

 <div class="text_sub">
        <input type="text" id="summ" placeholder="Другая сумма"/>
        <input type="button" value="Отправить" id="butt" />
  </div>

JavaScript

$("input[type='radio']").click(function(){
  $("#summ").val($(this).val())
})