Skip to content
Cross-browser oninput solution
JavaScript
Find file
Latest commit dd3e633 @bbarakaci tests, grunt, first build
Failed to load latest commit information.
dist tests, grunt, first build
libs initial commit
src tests, grunt, first build
test tests, grunt, first build
Gruntfile.js tests, grunt, first build
LICENSE-MIT initial commit
README.md tests, grunt, first build
index.html

README.md

On Input Change

oninput event is not supported by ie lt 9 and is buggy on ie9.

This jQuery plugin will use the native oninput event, will fallback to setInterval method on Internet Explorer.

There is a simple demo/development page to see it in action.

Download

Download the production version or the development version.

Usage

$('input').onInputChange(function(value, element){
    console.log(value);
    console.log(element);
});

Options

time

Set time in milliseconds for the setInterval method. Default is 150.

$('input').onInputChange(anyfunction, {time:200});
Something went wrong with that request. Please try again.