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.
IE | Edge | Firefox | Chrome | Safari | Opera | iOS Safari | Opera Mini | Android Browser | Blackberry Browser | Opera Mobile | Chrome for Android | Firefox for Android | IE Mobile | UC Browser for Android | Samsung Internet | QQ Browser | Baidu Browser |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49
See notes:
|
|||||||||||||||||
56
See notes:
|
9.3
See notes:
|
4.4
See notes:
|
|||||||||||||||
14
See notes:
|
52 | 57
See notes:
|
10
See notes:
|
10.0-10.2
See notes:
|
4.4.3-4.4.4
See notes:
|
4
See notes:
|
|||||||||||
11
See notes:
|
15
See notes:
|
53 | 58
See notes:
|
10.1
See notes:
|
44
See notes:
|
10.3
See notes:
|
all | 56
See notes:
|
10
See notes:
|
37
See notes:
|
57
See notes:
|
52
See notes:
|
11
See notes:
|
11.4
See notes:
|
5
See notes:
|
1.2
See notes:
|
7.12
See notes:
|
54 | 59
See notes:
|
TP
See notes:
|
45
See notes:
|
||||||||||||||
55 | 60
See notes:
|
46
See notes:
|
|||||||||||||||
56 | 61
See notes:
|
Notes
-
1
Doesn't fire an
input
event when deleting text (via Backspace, Delete, Cut, etc.). -
2
Doesn't fire an
input
event when drag-and-dropping text into an<input>
or<textarea>
. - 3
-
4
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, and Firefox bug. -
5
Doesn't fire an
input
event when (un)checking a checkbox or radio button. See MS Edge bug.