Baseline Widely available
readOnly
㯠HTMLInputElement
ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ããããã£ã§ã<input>
ã®å¤ãã¦ã¼ã¶ã¼ã夿´ã§ããªããã¨ã示ãã¾ãããã㯠<input>
è¦ç´ ã® readonly
è«ç屿§ãåæ ãããã®ã§ã屿§ãåå¨ããå ´å㯠true
ãè¿ããçç¥ããã¦ããå ´å㯠false
ãè¿ãã¾ãã
disabled
ããããã£ã true ã§ãããã©ã¼ã ã³ã³ããã¼ã«ã¨ã¯ç°ãªããreadOnly
ããããã£ã true ã®å¤ã§ããå ´åãã¯ãªãã¯ãã³ã³ããã¼ã«å
ã®é¸æãã§ããªãã¯ãªãã¾ããã
HTML ã® readonly
屿§ã¯ãåã hidden
ãrange
ãcolor
ãcheckbox
ãradio
ãfile
ãsubmit
ãreset
ãbutton
ãimage
ã®å ´åã«ã¯ç¡è¦ããã¾ããããããã®å
¥ååã§ã¯ã屿§ãåå¨ããå ´å㯠readOnly
ããããã£ã true
ããã以å¤ã¯ false
ã¨ãªãã¾ãã
è«çå¤ã§ãã
ä¾const inputElement = document.getElementById("total");
console.log(inputElement.readOnly);
inputElement.readOnly = true;
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§ é¢é£æ
å ±
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4