How do I tell if my radio button is checked using id's? I've been trying this: Javascript code: if(document.getElementById('radio1').checked == 1) { //code here } Code (markup): But it keeps on unchecking the buttons everytime I check them. Please help! ~imozeb