DEV Community

sunj
sunj

Posted on

Html, 숫자만 입력 가능하게 하기

<input type='number'></input>
Enter fullscreen mode Exit fullscreen mode
<input type='number' min='10' max='30' step='3'>
Enter fullscreen mode Exit fullscreen mode
<input type="text" pattern="[0-9]+">
Enter fullscreen mode Exit fullscreen mode

참조: https://hianna.tistory.com/413

Top comments (0)