Baseline Widely available
badInput
㯠ValidityState ãªãã¸ã§ã¯ãã®èªã¿åãå°ç¨ã®ããããã£ã§ããã©ã¦ã¶ã¼ã夿ã§ããªãå
¥åãã¦ã¼ã¶ã¼ãè¡ã£ããã©ããã示ãã¾ããä¾ãã°ãæ°å¤ã®å
¥åæ¬ã«æååãããå ´åã§ãã
è«çå¤ã§ãã
ä¾<input type="number" id="age" />
const input = document.getElementById("age");
if (input.validity.badInput) {
console.log("Bad input detectedâ¦");
} else {
console.log("Content of input OK.");
}
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§ é¢é£æ
å ±
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