devxlogo

Initialize a Radio Button

Initialize a Radio Button

Question:
Is there a parameter that can be used within a radio button tag in an HTML form to set the default value for the radio group?

Answer:
The CHECKED parameter will cause a radio button to be turned on when the page appears:

devx-admin

Share the Post: