lhl 561548437c 5-6-1 | hai 8 meses | |
---|---|---|
.. | ||
demo | hai 8 meses | |
dist | hai 8 meses | |
src | hai 8 meses | |
test | hai 8 meses | |
.editorconfig | hai 8 meses | |
.npmignore | hai 8 meses | |
.travis.yml | hai 8 meses | |
bower.json | hai 8 meses | |
karma.conf.js | hai 8 meses | |
package.json | hai 8 meses | |
readme.md | hai 8 meses |
Programmatically select the text of a HTML element.
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.
<script src="dist/select.js"></script>
var input = document.querySelector('input');
var result = select(input);
var select = require('select');
var input = document.querySelector('input');
var result = select(input);
MIT License © Zeno Rocha