https://github.com/nuintun/oninput-fix
Fix input event in jquery, support low version of ie.
https://github.com/nuintun/oninput-fix
Last synced: about 1 year ago
JSON representation
Fix input event in jquery, support low version of ie.
- Host: GitHub
- URL: https://github.com/nuintun/oninput-fix
- Owner: nuintun
- License: mit
- Created: 2016-03-16T07:31:30.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-14T02:46:49.000Z (almost 9 years ago)
- Last Synced: 2023-04-05T13:38:05.449Z (about 3 years ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oninput-fix
>Fix input event in jquery, support low version of ie.
### Introduction:
Default is CommonJS module
If not CommonJS you must do this:
>1.Remove first and last line of the code
>
>2.Wrap code useing:
```js
(function ($){
// the code of remove first and last line
}(jQuery));
```
### API:
Sample:
>
```js
$('#input').on('input', callback);
$('#input').input(callback);
$('#input').off('input', callback);
$('#input').uninput(callback);
```
### Notice:
Dot change input value in low version of ie without condition statement, because it will go into an infinite loop!