HTML required readonly input in form

后端 未结 13 2105
执笔经年
执笔经年 2020-12-13 08:36

I\'m making a form. And on one input tag is an OnClick event handler, which is opening a popup, where you can choose some stuff, and then it autofi

13条回答
  •  鱼传尺愫
    2020-12-13 09:35

    This is by design. According to the official HTML5 standard drafts, "if the readonly attribute is specified on an input element, the element is barred from constraint validation." (E.g. its values won't be checked.)

提交回复
热议问题