There is a list of radio buttons.
<div> <input type="radio" id="who_you1" name="type_bid" value="Прямой заказчик" <?if ($users['type_bid']=='Прямой заказчик'){?>checked=""<?;}?>> <label for="who_you1"><span></span> Прямой заказчик</label> </div> <div style="margin-top:10px;"> <input type="radio" id="who_you2" name="type_bid" value="Диспетчер" <?if ($users['type_bid']=='Диспетчер'){?>checked=""<?;}?>> <label for="who_you2"><span></span> Диспетчер</label> </div> <div style="margin-top:10px;"> <input type="radio" id="who_you3" name="type_bid" value="Логистическая компания" <?if ($users['type_bid']=='Логистическая компания'){?>checked=""<?;}?>> <label for="who_you3"><span></span> Логистическая компания</label> </div> Pot click on the save button you need to get the selected radio button. So does not work
var type_bid = $("input[name='type_bid']").val(); What to do? how to get through jquery