"change" event

circle-info

The change event is fired for <input>arrow-up-right, <select>arrow-up-right, and <textarea>arrow-up-right elements when an alteration to the element's value is committed (entered) by the user. Unlike the inputarrow-up-right event, the change event is not necessarily fired for each alteration to an element's value.

circle-exclamation

when "change" event fires

ๅ…ƒไปถ

type

event

<input>

radio, checkbox

click

<input>

date, file

select

<select>

select

<input>

text

element loses focus after its value was changed, but not committed

<textarea>

(same above)

code example

Last updated