Input attributes that can have the same “name”

前端 未结 7 712
野的像风
野的像风 2020-12-10 14:12

I noticed that if you have a couple of radios together, you are required to make the name attribute identical on all of them in order for the radios to work as expected:

7条回答
  •  半阙折子戏
    2020-12-10 15:00

    some elements names or attributes when used multiple times are just ignored by the HTML parser
    For example if you use more than one id only the first is considered.

提交回复
热议问题