Socket
Book a DemoInstallSign in
Socket

@digitaledgeit/input-event

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitaledgeit/input-event

Make your input events work in IE8-9 too.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

input-event

Make your input events work in IE8-9 too.

Installation

Browserify:

npm install --save @digitaledgeit/input-event

Component:

component install digitaledgeit/js-input-event

Usage

var events = require('input-event');
var el = document.querySelector('input[type=text]');

events.bind(el, function() {
  console.log('Input text has changed!');
});

Methods

.bind(el, callback, capture)

Start listening for input events on an <input type="text|password"> element.

.unbind(el, callback, capture)

Stop listening for input events on an <input type="text|password"> element.

Note: This functionality is not yet implemented in IE8-9. Please raise an issue if you require it.

Example

Run browserify index.js -r ./index.js:input-event > build/build.js and open example.html.

License

The MIT License (MIT)

Copyright (c) 2014 James Newell

Adapted from a jQuery plugin by Ben Alpert.

Keywords

browser

FAQs

Package last updated on 13 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts