Giter Site home page Giter Site logo

zfchengjun / jquery-splendid-textchange Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sophiebits/jquery-splendid-textchange

0.0 1.0 0.0 116 KB

A near-perfect oninput shim for IE 8 and 9

Home Page: http://benalpert.com/2013/06/18/a-near-perfect-oninput-shim-for-ie-8-and-9.html

JavaScript 100.00%

jquery-splendid-textchange's Introduction

jQuery “splendid textchange” plugin

This plugin provides a synthetic event called textchange which simulates the input event in all browsers, abstracting over cross-browser differences.

Simply do:

// <input type="text" id="monkey">

$("#monkey").on("textchange", function() {
    // ...
});

and you'll receive events for every value change, just as you would if the input event worked properly in all browsers.

See my blog post “A near-perfect oninput shim for IE 8 and 9” for more details.

Support

Supports IE 8, IE 9, and modern browsers.

Tested in jQuery 1.10; should work in 1.7+.

Why “splendid”?

Zurb already has an unrelated textchange plugin and I suck at names, sorry.

License

(c) 2013 Ben Alpert, released under the MIT license.

jquery-splendid-textchange's People

Contributors

sophiebits avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.