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