Skip to content
Programmatically select the text of a HTML element
Branch: master
Clone or download
Latest commit 53e4a21 Feb 8, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo Adds ability to select a <select> element Oct 17, 2016
dist Release v1.1.2 Feb 8, 2017
src Prevent keyboard from showing on iOS Feb 8, 2017
test Adds test for svg text, updates deps Oct 20, 2015
.editorconfig Adds basic setup Oct 19, 2015
.gitignore Adds basic setup Oct 19, 2015
.travis.yml Adds Travis CI Oct 19, 2015
bower.json Release v1.1.0 Oct 17, 2016
karma.conf.js Adds tests with Karma, Chai, and Mocha Oct 19, 2015
package.json Release v1.1.2 Feb 8, 2017
readme.md Updates description Oct 20, 2015

readme.md

select

Build Status

Programmatically select the text of a HTML element.

Install

You can get it on npm.

npm install select --save

Or bower, too.

bower install select --save

If you're not into package management, just download a ZIP file.

Usage

Standalone

<script src="dist/select.js"></script>
var input = document.querySelector('input');
var result = select(input);

Browserify

var select = require('select');
var input = document.querySelector('input');
var result = select(input);

License

MIT License © Zeno Rocha

You can’t perform that action at this time.