Tagor
asked on
Disable radio buttons / onChange event
Hello,
I have two radio buttons called "radiobuttons". The one has as value "number1" and the other one has as value "number2".
How can I disable then using javascript by using an onChange event?
I have two radio buttons called "radiobuttons". The one has as value "number1" and the other one has as value "number2".
How can I disable then using javascript by using an onChange event?
<input type = "radio" name = "radio1" onclick = "javascript: this.disabled = true">
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
use onclick or onchange whichever will suit ur requirement..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
... meaning, if there is more than one radio with the same name, then use the index number as I described above.
ASKER
Thanks guys!