Html duplicated ID

后端 未结 8 1785
渐次进展
渐次进展 2020-12-01 23:41

My control is built dynamically accordingly to user input, there are n textboxes whose IDs are dynamic too.

However, I did not foresee that this HTML w

8条回答
  •  既然无缘
    2020-12-02 00:31

    Depends on HTML version:

    1. HTML 4 ID must be document-wide unique.
    2. HTML 5 ID unique in there container tree.

    but we suggest are not good practice

提交回复
热议问题