The change event fires when a form field changes state.
| Test | IE 5.5 | IE 6 | IE 7 | IE8 | IE9 | IE10 pr2 | FF 7.0 Win | FF 6.1 Mac | Saf 5.1 Win | Saf 5.1 Mac | Chrome 14 Win | Chrome 13 Mac | Opera 11.51 Win | Opera 11.51 Mac |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
On the window
|
No | Yes | Yes | Yes | Yes | Yes | ||||||||
|
Is this event available on the window? |
||||||||||||||
|
On the document
|
No | Yes | Yes | Yes | Yes | Yes | ||||||||
|
Is this event available on the document? |
||||||||||||||
|
On a form
|
No | Yes | Yes | Yes | Yes | Yes | ||||||||
|
Is this event available on a form? |
||||||||||||||
|
On text inputs
The event should fire when the text input is blurred AND its contents have changed since the user focused on it. |
Yes | Yes | Yes | Yes | Yes | |||||||||
| Test | IE 5.5 | IE 6 | IE 7 | IE8 | IE9 | IE10 pr2 | FF 7.0 Win | FF 6.1 Mac | Saf 5.1 Win | Saf 5.1 Mac | Chrome 14 Win | Chrome 13 Mac | Opera 11.51 Win | Opera 11.51 Mac |
|
On checkboxes and radios
The event should fire when the checkbox or radio is activated AND its |
Buggy | Yes | Yes | Yes | Yes | Yes | ||||||||
|
(The
|
||||||||||||||
|
On select boxes
The event should fire when the user has selected a new option (and not when the user goes through the list of options to decide which one he’s going to select). |
Buggy | Yes | Yes | Yes | Buggy | |||||||||
|
When the user uses a mouse the click on the new option fires the event; when he uses a keyboard the event is fired when the select box is blurred.
|
||||||||||||||
|
On reset
When the user resets the entire form the event should fire on every element that changes. |
No | No | No | No | No | |||||||||
|
Browsers generally disagree with my beautiful theory. |
||||||||||||||
|
Event bubbling
The event should bubble. |
Untest |
Yes | Yes | Yes | Yes | Yes | ||||||||
|
Prevent default
“No” is the correct answer
|
Buggy | No | No | No | No | No | ||||||||
|
The default action cannot be prevented.
|
||||||||||||||
| Test | IE 5.5 | IE 6 | IE 7 | IE8 | IE9 | IE10 pr2 | FF 7.0 Win | FF 6.1 Mac | Saf 5.1 Win | Saf 5.1 Mac | Chrome 14 Win | Chrome 13 Mac | Opera 11.51 Win | Opera 11.51 Mac |