Abakada HTML Demo: Example of the onchange Event


The onchange event occurs when the contents of the object or selection have changed.

Selecting any option in the drop-down list triggers the onchange event, which we can use to call a function. In this example, we use the event to display an alert box.


View Source   Exit

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.