The input
event is fired when the user changes the value of an <input>
element, <select>
element, or <textarea>
element. By contrast, the "change" event usually only fires after the form control has lost focus.
Spec | https://html.spec.whatwg.org/multipage/forms.html#event-input-input |
---|---|
Status | WHATWG Living Standard |
IE | Edge | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|---|
108 | |||||
107 | 107 | TP | |||
106 | 106 | 16.1 | |||
11 (3,5) | 105 | 105 | 105 | 16.0 | 91 |
10 (3,5) | 104 | 104 | 104 | 15.6 | 90 |
9 (1,3,5) | 103 | 103 | 103 | 15.5 | 89 |
8 | 102 | 102 | 102 | 15.4 | 88 |
Show all | |||||
7 | 101 | 101 | 101 | 15.2-15.3 | 87 |
6 | 100 | 100 | 100 | 15.1 | 86 |
5.5 | 99 | 99 | 99 | 15 | 85 |
98 | 98 | 98 | 14.1 | 84 | |
97 | 97 | 97 | 14 | 83 | |
96 | 96 | 96 | 13.1 | 82 | |
95 | 95 | 95 | 13 (6) | 81 | |
94 | 94 | 94 | 12.1 (6) | 80 | |
93 | 93 | 93 | 12 (4) | 79 | |
92 | 92 | 92 | 11.1 (4) | 78 | |
91 | 91 | 91 | 11 (4) | 77 | |
90 | 90 | 90 | 10.1 (4) | 76 | |
89 | 89 | 89 | 10 (4) | 75 | |
88 | 88 | 88 | 9.1 (4) | 74 | |
87 | 87 | 87 | 9 (4) | 73 | |
86 | 86 | 86 | 8 (4) | 72 | |
85 | 85 | 85 | 7.1 (4) | 71 | |
84 | 84 | 84 | 7 (4) | 70 | |
83 | 83 | 83 | 6.1 (4) | 69 | |
81 | 82 | 81 | 6 | 68 | |
80 | 81 | 80 | 5.1 (3,4) | 67 | |
79 | 80 | 79 | 5 | 66 | |
18 (3,5) | 79 | 78 | 4 | 65 | |
17 (3,5) | 78 | 77 | 3.2 | 64 | |
16 (3,5) | 77 | 76 | 3.1 | 63 | |
15 (3,5) | 76 | 75 | 62 | ||
14 (3,5) | 75 | 74 | 60 | ||
13 (3,5) | 74 | 73 | 58 | ||
12 (3,5) | 73 | 72 | 57 | ||
72 | 71 | 56 | |||
71 | 70 | 55 | |||
70 | 69 | 54 | |||
69 | 68 | 53 | |||
68 | 67 | 52 | |||
67 | 66 | 51 (4) | |||
66 | 65 (4) | 50 (4) | |||
65 | 64 (4) | 49 (4) | |||
64 | 63 (4) | 48 (4) | |||
63 | 62 (4) | 47 (4) | |||
62 | 61 (4) | 46 (4) | |||
61 | 60 (4) | 45 (4) | |||
60 | 59 (4) | 44 (4) | |||
59 | 58 (4) | 43 (4) | |||
58 | 57 (4) | 42 (4) | |||
57 | 56 (4) | 41 (4) | |||
56 | 55 (4) | 40 (4) | |||
55 | 54 (4) | 39 (4) | |||
54 | 53 (4) | 38 (4) | |||
53 | 52 (4) | 37 (4) | |||
52 | 51 (4) | 36 (4) | |||
51 | 50 (4) | 35 (4) | |||
50 | 49 (4) | 34 (4) | |||
49 | 48 (4) | 33 (4) | |||
48 (3,4) | 47 (4) | 32 (4) | |||
47 (3,4) | 46 (4) | 31 (4) | |||
46 (3,4) | 45 (4) | 30 (4) | |||
45 (3,4) | 44 (4) | 29 (4) | |||
44 (3,4) | 43 (4) | 28 (4) | |||
43 (3,4) | 42 (4) | 27 (4) | |||
42 (3,4) | 41 (4) | 26 (4) | |||
41 (3,4) | 40 (4) | 25 (4) | |||
40 (3,4) | 39 (4) | 24 (4) | |||
39 (3,4) | 38 (4) | 23 (4) | |||
38 (3,4) | 37 (4) | 22 (4) | |||
37 (3,4) | 36 (4) | 21 (3,4) | |||
36 (3,4) | 35 (4) | 20 (3,4) | |||
35 (3,4) | 34 (3,4) | 19 (3,4) | |||
34 (3,4) | 33 (3,4) | 18 (3,4) | |||
33 (3,4) | 32 (3,4) | 17 (3,4) | |||
32 (3,4) | 31 (3,4) | 16 (3,4) | |||
31 (3,4) | 30 (3,4) | 15 (3,4) | |||
30 (3,4) | 29 (3,4) | 12.1 | |||
29 (3,4) | 28 (3,4) | 12 | |||
28 (3,4) | 27 (3,4) | 11.6 (2) | |||
27 (3,4) | 26 (3,4) | 11.5 | |||
26 (3,4) | 25 (3,4) | 11.1 | |||
25 (3,4) | 24 (3,4) | 11 | |||
24 (3,4) | 23 (3,4) | 10.6 | |||
23 (3,4) | 22 (3,4) | 10.5 | |||
22 (3,4) | 21 (3,4) | 10.0-10.1 | |||
21 (3,4) | 20 (3,4) | 9.5-9.6 | |||
20 (3,4) | 19 (3,4) | 9 | |||
19 (3,4) | 18 (3,4) | ||||
18 (3,4) | 17 (3,4) | ||||
17 (3,4) | 16 (3,4) | ||||
16 (3,4) | 15 (3,4) | ||||
15 (3,4) | 14 | ||||
14 (3,4) | 13 | ||||
13 (3,4) | 12 | ||||
12 (3,4) | 11 | ||||
11 (3,4) | 10 | ||||
10 (3,4) | 9 | ||||
9 (3,4) | 8 | ||||
8 (3,4) | 7 | ||||
7 (3,4) | 6 | ||||
6 (3,4) | 5 | ||||
5 (3,4) | 4 | ||||
4 (3,4) | |||||
3.6 (3,4) | |||||
3.5 (2,3,4) | |||||
3 (2,3,4) | |||||
2 |
Safari on iOS | Opera Mini | Android Browser | Blackberry Browser | Opera Mobile | Android Chrome | Android Firefox | IE Mobile | Android UC Browser | Samsung Internet | QQ Browser | Baidu Browser | KaiOS Browser |
---|---|---|---|---|---|---|---|---|---|---|---|---|
16.1 | ||||||||||||
16.0 | all | 105 (4) | 10 (4) | 64 (4) | 105 | 104 | 11 (3,5) | 13.4 | 18.0 (4) | 13.1 | 13.18 | 2.5 (3,4) |
15.6 | 4.4.3-4.4.4 (4) | 7 (3,4) | 12.1 | 10 (3,5) | 17.0 (4) | |||||||
15.5 | 4.4 (3,4) | 12 | 16.0 (4) | |||||||||
15.4 | 4.2-4.3 (3,4) | 11.5 | 15.0 (4) | |||||||||
Show all | ||||||||||||
15.2-15.3 | 4.1 (3,4) | 11.1 | 14.0 (4) | |||||||||
15.0-15.1 | 4 (3,4) | 11 | 13.0 (4) | |||||||||
14.5-14.8 | 3 (3,4) | 10 | 12.0 (4) | |||||||||
14.0-14.4 | 2.3 (3,4) | 11.1-11.2 (4) | ||||||||||
13.4-13.7 | 2.2 | 10.1 (4) | ||||||||||
13.3 | 2.1 | 9.2 (4) | ||||||||||
13.2 | 8.2 (4) | |||||||||||
13.0-13.1 (6) | 7.2-7.4 (4) | |||||||||||
12.2-12.5 (6) | 6.2-6.4 (4) | |||||||||||
12.0-12.1 (4) | 5.0-5.4 (4) | |||||||||||
11.3-11.4 (4) | 4 (4) | |||||||||||
11.0-11.2 (4) | ||||||||||||
10.3 (4) | ||||||||||||
10.0-10.2 (4) | ||||||||||||
9.3 (4) | ||||||||||||
9.0-9.2 (4) | ||||||||||||
8.1-8.4 (4) | ||||||||||||
8 (4) | ||||||||||||
7.0-7.1 (3,4) | ||||||||||||
6.0-6.1 (3,4) | ||||||||||||
5.0-5.1 (3,4) | ||||||||||||
4.2-4.3 | ||||||||||||
4.0-4.1 | ||||||||||||
3.2 |
Doesn't fire an input
event when deleting text (via Backspace, Delete, Cut, etc.).
Doesn't fire an input
event when drag-and-dropping text into an <input>
or <textarea>
.
<select>
doesn't fire input
events. See MS Edge bug and Firefox bug.
Doesn't fire an input
event when (un)checking a checkbox or radio button, or when changing the selected file(s) of an <input type="file">
. See Chrome bug, WebKit bug #149398, WebKit bug #190223 and Firefox bug.
Doesn't fire an input
event when (un)checking a checkbox or radio button. See MS Edge bug.
Doesn't fire an input
event when changing the selected file(s) of an <input type="file">
. See WebKit bug #149398 and WebKit bug #204292.
Internet Explorer 10 and 11 fire the input
event when an input field with a placeholder is focused or on page load when the placeholder contains certain characters, like Chinese.
Data by caniuse.com
Licensed under the Creative Commons Attribution License v4.0.
https://caniuse.com/input-event