type=âtextâã®ã¾ã¾ã§æ°å¤ã®ã¿ã«ããã«ã¯patternå±æ§ã使ç¨ãã¦æ°å¤ã®ã¿ã«ãããã¨ãåºæ¥ã¾ããããã®æ°å¤ãã§ãã¯ã¯submitã®ã¿ã¤ãã³ã°ãªã®ã§å ¥åæãã§ãã¯ã¯patternã§ã¯ã§ãã¾ããã oninputã使ã oninputã使ç¨ãã¦å ¥åã¤ãã³ããå ¨ã¦ãã§ãã¯ãã¦è§£æ±ºãããã¨ãåºæ¥ã¾ãã ãã®å ´åãtype=âtextâã®ã¾ã¾ãªã®ã§maxlengthãå¹ããããã¨ãã§ãã¾ãã å ·ä½çã«ã¯æ£è¦è¡¨ç¾ã§æ°å¤ä»¥å¤ãå ¥åãããã空æåã«ç½®æãã¦ããããæ°å¤ã®ã¿å ¥åããäºãåºæ¥ãããã«ãªãã¾ãã <input type="text" maxlength="5" oninput="value = value.replace(/[^0-9]+/i,'');" /> input type=ânumberâã§maxlengthãå¹ããã ã¢ãã³ãã©ã¦ã¶ã§numberã®ã¹ããã¼ãã¿ã³ã表示ããã
{{#tags}}- {{label}}
{{/tags}}