Cross-browser oninput solution
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
libs
src
test
Gruntfile.js
LICENSE-MIT
README.md
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});