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

Class X IT notes: Part A, Unit 1, Session 1.

 IT notes class 10 Unit 1: COMMUNICATION SKILLS Session 1: METHODS & TYPES OF COMMUNICATION Q1. What is communication? Communication is ...