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