problems with the radio button in an html form

2

I have a problem with my Radio button . Everyone is getting selected on my html .

Why does this happen? Is there any property that directs this?

    
asked by anonymous 16.09.2014 / 21:26

1 answer

4

Add name equal to inputs . Example:

<form action="">
    <input type="radio" name="sex" value="male">Male<br>
    <input type="radio" name="sex" value="female">Female
</form>
    
16.09.2014 / 21:33