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