Skip to content

Commit

Permalink
Update files/en-us/web/api/htmlelement/input_event/index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
estelle authored Sep 14, 2023
1 parent 0f27deb commit dd3eefe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions files/en-us/web/api/htmlelement/input_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ For `<input>` elements with `type=checkbox` or `type=radio`, the `input` event s

For {{htmlelement("textarea")}} and {{htmlelement("input")}} elements that accept text input (`type=text`, `type=tel`, etc.), the interface is {{DOMxRef("InputEvent")}}; for others, the interface is {{DOMxRef("Event")}}.

The `input` event is fired every time the `value` of the element changes. This is unlike the {{domxref("HTMLElement/change_event", "change")}} event, which only fires when the value is committed, such as by pressing the enter key, selecting a value from a list of options, and the like.

Note that the `input` event is not fired when an element's `value` is changed programmatically using JavaScript.
The `input` event is fired every time the `value` of the element changes. This is unlike the {{domxref("HTMLElement/change_event", "change")}} event, which only fires when the value is committed, such as by pressing the enter key or selecting a value from a list of options. Note that the `input` event is not fired when JavaScript changes an element's `value` programmatically.

## Syntax

Expand Down

0 comments on commit dd3eefe

Please sign in to comment.