radio buttons javascript code example Example: radio button html js getElementById("radio_button").checked(); //returns boolean