I have two radio buttons within an HTML form. A dialog box appears when one of the fields is null. How can I check whether a radio button is selected?
The form
The script
if(!document.teenageMutant.ninjaTurtles.checked){ alert('get down'); }
The fiddle: http://jsfiddle.net/PNpUS/