Rinkal Bhanderi Rinkal Bhanderi - 7 months ago 33
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"