This question already has an answer here:
I have one radio button of gender. The value is getting stored in db and i am able to fetch it too. But I want the radio button to be checked for the received value. Help me.
<input type="radio" name="gender" value="male" > Male
<input type="radio" name="gender" value="female" checked> Female
</div>