how to set a method if one radio button is checked code example Example: default checked radio button <input type="radio" name="imgsel" value="" checked>