|
|
пре 3 година | |
|---|---|---|
| .. | ||
| demo | пре 3 година | |
| dist | пре 3 година | |
| src | пре 3 година | |
| test | пре 3 година | |
| .editorconfig | пре 3 година | |
| .npmignore | пре 3 година | |
| .travis.yml | пре 3 година | |
| bower.json | пре 3 година | |
| karma.conf.js | пре 3 година | |
| package.json | пре 3 година | |
| readme.md | пре 3 година | |
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