References

Collection of references for web development.

HTML onchange event

Description

Execute JavaScript code when the value has changed.

Example

<input type="text" onchange="this.style.borderColor = 'green'">