internet explorer - Selecting an html radio button dynamically through javascript does not work in IE -
i want select radio button javascript. using simple html file test issue. code below works correctly on firefox , chrome, not work in ie (no version works). know why supplied code not work on ie, , how select radio button in ie? <html> <head> <script type="text/javascript"> function chooseone() { var randomchoice = math.round(math.random() * 2); if(randomchoice == 0) { document.getelementbyid("test0").checked = true; } else if (randomchoice == 1) { document.getelementbyid("test1").checked = true; } else { document.getelementbyid("test2").checked = true; } } </script> </head> <body> <input type="radio" id="test0" name="test" value="a" /> a<br /> <...