What is the correct readonly attribute syntax for input text elements?

后端 未结 3 1244
借酒劲吻你
借酒劲吻你 2020-11-30 09:29

As Most, I am familiar with the readonly attribute for text input, But while reading code from other websites (a nasty habit of mine ) I saw more t

3条回答
  •  粉色の甜心
    2020-11-30 09:58

    From w3:

    readonly = "readonly" or "" (empty string) or empty - Specifies that element represents a control whose value is not meant to be edited.

    So basically it's the same.

提交回复
热议问题