我的表单单选按钮不起作用
Some simple HTMl, I've added spans for styling, should I be using labels instead? It's meant to only allow one selected at a time. What am I doing wrong? I am codeblind :P
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
单选按钮组是由多个同名单选按钮创建的。
您有许多单选按钮组,每个组都包含一个按钮。
您不应为样式添加标签,但应该添加标签以将单选按钮的标签与单选按钮关联起来。
A radio group is created by a having a number of radio buttons with the same name.
You have a number of radio groups, each containing one button.
You shouldn't add labels for styling, but you should add labels for associating the label of a radio button with the radio button.
您需要将单选按钮分组如下:
you need to group the radio buttons as such:
在单选按钮中使用单个名称,
Use single name in the radio button,