Put text input inside label for radio button?

后端 未结 1 1101
你的背包
你的背包 2021-02-14 05:16

I\'m trying to make a radio group specifying a bunch of options, and an extra option \"other\" with a text input to specify. The code for this particular radio button I\'m using

相关标签:
1条回答
  • 2021-02-14 05:22

    Placing a control inside a label associates that label with that control, and you may only have one control associated with a given label. This is therefore non-conformant HTML.

    JavaScript is the better option here.

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