Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Cross-browser oninput solution

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 dist
Octocat-spinner-32 libs
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 Gruntfile.js
Octocat-spinner-32 LICENSE-MIT
Octocat-spinner-32 README.md
Octocat-spinner-32 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.