input event
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 |
---|---|---|---|---|---|
98 | |||||
95 | 97 | ||||
94 | 96 | TP | |||
11 (3,5) | 95 | 93 | 95 | 15 | 80 |
10 (3,5) | 94 | 92 | 94 | 14.1 | 79 |
9 (1,3,5) | 93 | 91 | 93 | 14 | 78 |
8 | 92 | 90 | 92 | 13.1 | 77 |
Show all | |||||
7 | 91 | 89 | 91 | 13 (6) | 76 |
6 | 90 | 88 | 90 | 12.1 (6) | 75 |
5.5 | 89 | 87 | 89 | 12 (4) | 74 |
88 | 86 | 88 | 11.1 (4) | 73 | |
87 | 85 | 87 | 11 (4) | 72 | |
86 | 84 | 86 | 10.1 (4) | 71 | |
85 | 83 | 85 | 10 (4) | 70 | |
84 | 82 | 84 | 9.1 (4) | 69 | |
83 | 81 | 83 | 9 (4) | 68 | |
81 | 80 | 81 | 8 (4) | 67 | |
80 | 79 | 80 | 7.1 (4) | 66 | |
79 | 78 | 79 | 7 (4) | 65 | |
18 (3,5) | 77 | 78 | 6.1 (4) | 64 | |
17 (3,5) | 76 | 77 | 6 | 63 | |
16 (3,5) | 75 | 76 | 5.1 (3,4) | 62 | |
15 (3,5) | 74 | 75 | 5 | 60 | |
14 (3,5) | 73 | 74 | 4 | 58 | |
13 (3,5) | 72 | 73 | 3.2 | 57 | |
12 (3,5) | 71 | 72 | 3.1 | 56 | |
70 | 71 | 55 | |||
69 | 70 | 54 | |||
68 | 69 | 53 | |||
67 | 68 | 52 | |||
66 | 67 | 51 (4) | |||
65 | 66 | 50 (4) | |||
64 | 65 (4) | 49 (4) | |||
63 | 64 (4) | 48 (4) | |||
62 | 63 (4) | 47 (4) | |||
61 | 62 (4) | 46 (4) | |||
60 | 61 (4) | 45 (4) | |||
59 | 60 (4) | 44 (4) | |||
58 | 59 (4) | 43 (4) | |||
57 | 58 (4) | 42 (4) | |||
56 | 57 (4) | 41 (4) | |||
55 | 56 (4) | 40 (4) | |||
54 | 55 (4) | 39 (4) | |||
53 | 54 (4) | 38 (4) | |||
52 | 53 (4) | 37 (4) | |||
51 | 52 (4) | 36 (4) | |||
50 | 51 (4) | 35 (4) | |||
49 | 50 (4) | 34 (4) | |||
48 (3,4) | 49 (4) | 33 (4) | |||
47 (3,4) | 48 (4) | 32 (4) | |||
46 (3,4) | 47 (4) | 31 (4) | |||
45 (3,4) | 46 (4) | 30 (4) | |||
44 (3,4) | 45 (4) | 29 (4) | |||
43 (3,4) | 44 (4) | 28 (4) | |||
42 (3,4) | 43 (4) | 27 (4) | |||
41 (3,4) | 42 (4) | 26 (4) | |||
40 (3,4) | 41 (4) | 25 (4) | |||
39 (3,4) | 40 (4) | 24 (4) | |||
38 (3,4) | 39 (4) | 23 (4) | |||
37 (3,4) | 38 (4) | 22 (4) | |||
36 (3,4) | 37 (4) | 21 (3,4) | |||
35 (3,4) | 36 (4) | 20 (3,4) | |||
34 (3,4) | 35 (4) | 19 (3,4) | |||
33 (3,4) | 34 (3,4) | 18 (3,4) | |||
32 (3,4) | 33 (3,4) | 17 (3,4) | |||
31 (3,4) | 32 (3,4) | 16 (3,4) | |||
30 (3,4) | 31 (3,4) | 15 (3,4) | |||
29 (3,4) | 30 (3,4) | 12.1 | |||
28 (3,4) | 29 (3,4) | 12 | |||
27 (3,4) | 28 (3,4) | 11.6 (2) | |||
26 (3,4) | 27 (3,4) | 11.5 | |||
25 (3,4) | 26 (3,4) | 11.1 | |||
24 (3,4) | 25 (3,4) | 11 | |||
23 (3,4) | 24 (3,4) | 10.6 | |||
22 (3,4) | 23 (3,4) | 10.5 | |||
21 (3,4) | 22 (3,4) | 10.0-10.1 | |||
20 (3,4) | 21 (3,4) | 9.5-9.6 | |||
19 (3,4) | 20 (3,4) | 9 | |||
18 (3,4) | 19 (3,4) | ||||
17 (3,4) | 18 (3,4) | ||||
16 (3,4) | 17 (3,4) | ||||
15 (3,4) | 16 (3,4) | ||||
14 (3,4) | 15 (3,4) | ||||
13 (3,4) | 14 | ||||
12 (3,4) | 13 | ||||
11 (3,4) | 12 | ||||
10 (3,4) | 11 | ||||
9 (3,4) | 10 | ||||
8 (3,4) | 9 | ||||
7 (3,4) | 8 | ||||
6 (3,4) | 7 | ||||
5 (3,4) | 6 | ||||
4 (3,4) | 5 | ||||
3.6 (3,4) | 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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
15 (4) | all | 94 (4) | 10 (4) | 64 (4) | 94 | 92 (3,4) | 11 (3,5) | 12.12 (3,4) | 15.0 (4) | 10.4 (4) | 7.12 (4) | 2.5 (3,4) |
14.5-14.8 (4) | 4.4.3-4.4.4 (4) | 7 (3,4) | 12.1 | 10 (3,5) | 14.0 (4) | |||||||
14.0-14.4 (4) | 4.4 (3,4) | 12 | 13.0 (4) | |||||||||
13.4-13.7 (4) | 4.2-4.3 (3,4) | 11.5 | 12.0 (4) | |||||||||
Show all | ||||||||||||
13.3 (4) | 4.1 (3,4) | 11.1 | 11.1-11.2 (4) | |||||||||
13.2 (4) | 4 (3,4) | 11 | 10.1 (4) | |||||||||
13.0-13.1 (4) | 3 (3,4) | 10 | 9.2 (4) | |||||||||
12.2-12.5 (4) | 2.3 (3,4) | 8.2 (4) | ||||||||||
12.0-12.1 (4) | 2.2 | 7.2-7.4 (4) | ||||||||||
11.3-11.4 (4) | 2.1 | 6.2-6.4 (4) | ||||||||||
11.0-11.2 (4) | 5.0-5.4 (4) | |||||||||||
10.3 (4) | 4 (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 |
Notes
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 fireinput
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.
Bugs
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.