It is necessary when you click on a certain radiobutton to block some fields.
function agreeForm() { if (#autoVK.checked){ #countryVK.disabled = 1; } if(#settingsVK.checked){ #countryVK.disabled = 0; }
Here such code for some reason does not work. The fields themselves
<label class="radio-inline"> <input name="typeVK" id="autoVK" value="1" checked="" type="radio" onclick="agreeForm();">ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈΠΉ </label> <label class="radio-inline"> <input name="typeVK" id="settingsVK" value="0" type="radio" onclick="agreeForm();">Π‘ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΠ°ΠΌΠΈ </label> <input id="countryVK" type="text" class="form-control" placeholder="Π‘ΡΡΠ°Π½Π°" style="width:120px">