input event

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
    57 62 (4)    
    56 61 (4) TP (4) 48 (4)
  16 (3,5) 55 60 (4) 11 (4) 47 (4)
11 (3,5) 15 (3,5) 54 59 (4) 10.1 (4) 46 (4)
10 (3,5) 14 (3,5) 53 58 (4) 10 (4) 45 (4)
9 (1,3,5) 13 (3,5) 52 57 (4) 9.1 (4) 44 (4)
8 12 (3,5) 51 56 (4) 9 (4) 43 (4)
Show all
7   50 55 (4) 8 (4) 42 (4)
6   49 54 (4) 7.1 (4) 41 (4)
5.5   48 (3,4) 53 (4) 7 (4) 40 (4)
    47 (3,4) 52 (4) 6.1 (4) 39 (4)
    46 (3,4) 51 (4) 6 38 (4)
    45 (3,4) 50 (4) 5.1 (3,4) 37 (4)
    44 (3,4) 49 (4) 5 36 (4)
    43 (3,4) 48 (4) 4 35 (4)
    42 (3,4) 47 (4) 3.2 34 (4)
    41 (3,4) 46 (4) 3.1 33 (4)
    40 (3,4) 45 (4)   32 (4)
    39 (3,4) 44 (4)   31 (4)
    38 (3,4) 43 (4)   30 (4)
    37 (3,4) 42 (4)   29 (4)
    36 (3,4) 41 (4)   28 (4)
    35 (3,4) 40 (4)   27 (4)
    34 (3,4) 39 (4)   26 (4)
    33 (3,4) 38 (4)   25 (4)
    32 (3,4) 37 (4)   24 (4)
    31 (3,4) 36 (4)   23 (4)
    30 (3,4) 35 (4)   22 (4)
    29 (3,4) 34 (3,4)   21 (3,4)
    28 (3,4) 33 (3,4)   20 (3,4)
    27 (3,4) 32 (3,4)   19 (3,4)
    26 (3,4) 31 (3,4)   18 (3,4)
    25 (3,4) 30 (3,4)   17 (3,4)
    24 (3,4) 29 (3,4)   16 (3,4)
    23 (3,4) 28 (3,4)   15 (3,4)
    22 (3,4) 27 (3,4)   12.1
    21 (3,4) 26 (3,4)   12
    20 (3,4) 25 (3,4)   11.6 (2)
    19 (3,4) 24 (3,4)   11.5
    18 (3,4) 23 (3,4)   11.1
    17 (3,4) 22 (3,4)   11
    16 (3,4) 21 (3,4)   10.6
    15 (3,4) 20 (3,4)   10.5
    14 (3,4) 19 (3,4)   10.0-10.1
    13 (3,4) 18 (3,4)   9.5-9.6
    12 (3,4) 17 (3,4)   9
    11 (3,4) 16 (3,4)    
    10 (3,4) 15 (3,4)    
    9 (3,4) 14    
    8 (3,4) 13    
    7 (3,4) 12    
    6 (3,4) 11    
    5 (3,4) 10    
    4 (3,4) 9    
    3.6 (3,4) 8    
    3.5 (2,3,4) 7    
    3 (2,3,4) 6    
    2 5    
      4    
iOS Safari Opera Mini Android Browser Blackberry Browser Opera Mobile Android Chrome Android Firefox IE Mobile Android UC Browser Samsung Internet QQ Browser Baidu Browser
11 (4)                      
10.3 (4) all 56 (4) 10 (4) 37 (4) 59 (4) 54 (3,4) 11 (3,5) 11.4 (3,4) 5 (4) 1.2 (4) 7.12 (4)
10.0-10.2 (4)   4.4.3-4.4.4 (4) 7 (3,4) 12.1     10 (3,5)   4 (4)    
9.3 (4)   4.4 (3,4)   12              
9.0-9.2 (4)   4.2-4.3 (3,4)   11.5              
Show all
8.1-8.4 (4)   4.1 (3,4)   11.1              
8 (4)   4 (3,4)   11              
7.0-7.1 (3,4)   3 (3,4)   10              
6.0-6.1 (3,4)   2.3 (3,4)                  
5.0-5.1 (3,4)   2.2                  
4.2-4.3   2.1                  
4.0-4.1                      
3.2                      

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. <select> doesn't fire input events. See MS Edge bug and Firefox bug.

  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.

Bugs

Resources