Rinkal Bhanderi Rinkal Bhanderi - 4 months ago 10
HTML Question

Assign an initial value to radio button as checked

How do I assign the value of a radio button initially as checked in HTML?

Answer

You can use the checked attribute for this:

checked="checked"
Comments