Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <input type="radio" name="test" value="1" /> <input type="radio" name="test" value="2" checked="checked" /> <input type="radio" name="test" value="3" /> <script> let radios = document.getElementsByTagName('input'); for(i = 0; i < radios.length; i++) { radios[i].onclick = function(e) { if(e.ctrlKey) { this.checked = false; } } } </script> </body> </html>