"change" event
The change event is fired for <input>
, <select>
, and <textarea>
elements when an alteration to the element's value is committed (entered) by the user. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.
"change" event๏ผvalue ่ขซ็ขบ่ชไนๅพ (ๅฆ๏ผๆ enter) ๆๆ่งธ็ผ็ไบไปถใ
"input" event๏ผๅช่ฆ value ็ผ็ๆน่ฎๅฐฑๆ่งธ็ผ็ไบไปถใ
when "change" event fires
ๅ ไปถ
type
event
<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