Chrome 63+ throws [DOM] error with input type password and non-unique ids

前端 未结 3 2020
借酒劲吻你
借酒劲吻你 2020-12-18 19:10

From Chrome 63, the following error is thrown:

[DOM] Found 2 elements with non-unique id #a: (More info: https://goo.gl/9p2vKq)

3条回答
  •  轮回少年
    2020-12-18 19:23

    Instead of id='a' use class='a' with unique name, and then use with .a in or you can use unique id different then other field id like id='a' and other field like id='b'.

提交回复
热议问题