lhl 8884f64fe1 10-8 | il y a 3 ans | |
---|---|---|
.. | ||
demo | il y a 3 ans | |
dist | il y a 3 ans | |
src | il y a 3 ans | |
test | il y a 3 ans | |
.editorconfig | il y a 3 ans | |
.npmignore | il y a 3 ans | |
.travis.yml | il y a 3 ans | |
bower.json | il y a 3 ans | |
karma.conf.js | il y a 3 ans | |
package.json | il y a 3 ans | |
readme.md | il y a 3 ans |
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