Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <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> </html>