An open API service indexing awesome lists of open source software.

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.

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!