Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sophiebits/jquery-splendid-textchange
A near-perfect oninput shim for IE 8 and 9
https://github.com/sophiebits/jquery-splendid-textchange
Last synced: about 2 months ago
JSON representation
A near-perfect oninput shim for IE 8 and 9
- Host: GitHub
- URL: https://github.com/sophiebits/jquery-splendid-textchange
- Owner: sophiebits
- Created: 2013-06-18T07:21:55.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-18T18:24:01.000Z (over 11 years ago)
- Last Synced: 2024-11-02T01:51:12.418Z (about 2 months ago)
- Language: JavaScript
- Homepage: http://benalpert.com/2013/06/18/a-near-perfect-oninput-shim-for-ie-8-and-9.html
- Size: 113 KB
- Stars: 90
- Watchers: 7
- Forks: 23
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jQuery “splendid textchange” plugin
This plugin provides a synthetic event called textchange which simulates the input event in all browsers, abstracting over cross-browser differences.
Simply do:
```js
//$("#monkey").on("textchange", function() {
// ...
});
```and you'll receive events for every `value` change, just as you would if the input event worked properly in all browsers.
See my blog post “[A near-perfect oninput shim for IE 8 and 9](http://benalpert.com/2013/06/18/a-near-perfect-oninput-shim-for-ie-8-and-9.html)” for more details.
## Support
Supports IE 8, IE 9, and modern browsers.
Tested in jQuery 1.10; should work in 1.7+.
## Why “splendid”?
Zurb already has an [unrelated textchange plugin](http://zurb.com/playground/jquery-text-change-custom-event) and I suck at names, sorry.
## License
(c) 2013 Ben Alpert, released under the MIT license.