Two input fields inside one label

前端 未结 7 1237
忘了有多久
忘了有多久 2020-12-03 04:25

Consider the following:


相关标签:
7条回答
  • 2020-12-03 05:16

    According to this - label can contain only one input as it should be associated with only one control. Putting input inside the label means elimination of for attribute (automatic linking).

    So you should either put single input into label or specify for attribute which points to input id and don't put input into label.

    0 讨论(0)
提交回复
热议问题