Skip to content
Cross-browser oninput solution
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
dist
libs
src tests, grunt, first build Oct 14, 2012
test
Gruntfile.js
LICENSE-MIT initial commit Aug 12, 2012
README.md
index.html tests, grunt, first build Oct 14, 2012

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.