JSFiddle - React, Tailwind, and code Playground
by hollanditkzn
HTML
<img id="imgageKonstr" name="imageType" src="image/mujskaya_futbolka_constr.png">
<div id="typ">
<div id="textTyp">Тип</div>
<input type="radio" id="option1" name="scr" class="radioKonst" value="image/mujskaya_futbolka_constr.png" checked hidden><label for="option1">Футболка</label>
<input type="radio" id="option2" class="radioKonst" name="scr" value="image/mujskaya_mayka_constr.png" hidden><label for="option2">Майка</label>
<input type="radio" id="option3" class="radioKonst" name="scr" value="image/mujskaya_polo__constr.png" hidden><label for="option3">Поло</label>
<input type="radio" id="option4" class="radioKonst" name="scr" value="image/jenskiy_svitshot_constr.png" hidden><label for="option4">Свитшот</label>
<input type="radio" id="option5" class="radioKonst" name="scr" value="image/hood_constr.png" hidden><label for="option5">Худи</label>
</div>
JavaScript
var type = $("input[name='scr']").change(function(){
$(".radioKonst:checked").val();
});
console.log(type);
$(document).ready(function(){
$(".radioKonst").change(function(){
if (this.checked) {
var img = $(this).val();
alert(img);
}
});
});