<html>
<body>
Radio Button: <input type="radio" id="myRadio">
<button onclick="disable()">Disable radio button</button>
<button onclick="undisable()">Undisable radio button</button>
<script>
function disable() {
document.getElementById("myRadio").disabled = true;
}
function undisable() {
document.getElementById("myRadio").disabled = false;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_radio_disabled3 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:17:19 GMT -->
</html>