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