problems with the radio button in an html form

Asked

Viewed 349 times

2

I got a problem with mine Radio button. Everyone’s getting selected in mine html.

Why does that happen? Does it have any property that?

Exemplo

1 answer

4

Add the name equal for the inputs. Example:

<form action="">
    <input type="radio" name="sex" value="male">Male<br>
    <input type="radio" name="sex" value="female">Female
</form>
  • I solved the problem was the name that is different on the radio vlw guys by the help :)

  • @Eduardolopes Consider selecting the answer that helped you and marking it as right. Hug.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.