Monday, April 20, 2020

How to disable a option in a set of radio buttons

<input type="radio" name="disableme" id="1"> Animal
<input type="radio" name="disableme" id="2"> Mammal <input type="radio" name="disableme" id="3"> Human
document.getElementById("1").disabled = true;

source:

 https://www.w3schools.com/jsref/prop_radio_disabled.asp

https://stackoverflow.com/questions/13245672/how-to-disable-the-radio-button-using-javascript-not-using-any-js-framework

No comments:

Post a Comment

Sacred Thought

5 May 2024 Hari Om Verse 50-51, chapter two:  In this chapter two Shree krishna explains a simple way of living. Free from desires and void ...