zs 79e7674152 创建 | il y a 10 mois | |
---|---|---|
.. | ||
demo | il y a 10 mois | |
dist | il y a 10 mois | |
src | il y a 10 mois | |
test | il y a 10 mois | |
.editorconfig | il y a 10 mois | |
.npmignore | il y a 10 mois | |
.travis.yml | il y a 10 mois | |
bower.json | il y a 10 mois | |
karma.conf.js | il y a 10 mois | |
package.json | il y a 10 mois | |
readme.md | il y a 10 mois |
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