The onchange event that Javascript offers actually fires at the same time as the blur event in all major browsers. That's pretty annoying.
This script automatically fixes the problem, and makes your onchange handlers fire when they're supposed to: when the value of a field actually changes. It's really easy to use, and there are no strings attached.
Instructions
- Download onchange.js and put it in the same folder as your web site.
- Add the script to your page with a script declaration like this:
<script type="text/javascript" src="onchange.js"></script>
That's it -- your onchange event handler will now fire when expected.
Demo
Want to see onchange.js in action? Check out the demo.
Feedback
If you have any comments or suggestions, I'd love to hear them -- drop me a line.