Widely available Supported across all major browsers. Safe to use in production.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
1
12
1
3
18
2
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

JAVASCRIPT
<select onchange="console.log(this.value)">
  <option value="a">A</option>
  <option value="b">B</option>
</select>
<script>
document.querySelector('select').addEventListener('change', e => {
  console.log('変更:', e.target.value);
});
</script>

Live demo

Change event. Basics

formelement. Value that certain time to emit change event.

PreviewFullscreen

Change and input. Difference

Change is value. certain time, input is ki-input. to emitdifference.

PreviewFullscreen

Change event. Supportelement

Change event that emitformelement. Overview.

PreviewFullscreen

Use cases

  • Using Change event

    The change event is fired for <input>, <select>, and <textarea> elements when the user modifies the element's value.

Cautions

  • May not be supported in older browsers.

Accessibility

  • Verify how this element is announced by screen readers.