Need help with select?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

zenorocha
144 Stars 20 Forks 40 Commits 1 Opened issues

Description

Programmatically select the text of a HTML element

Services available

!
?

Need anything else?

Contributors list

# 1,968
JavaScr...
notepad
notepad...
css-gri...
31 commits
# 696,997
HTML
JavaScr...
2 commits
# 222,263
JavaScr...
elm
Shell
travis-...
1 commit
# 1,293
ESLint
casperj...
angular...
cython
1 commit
# 166,565
Databas...
JavaScr...
HTML
MongoDB
1 commit
# 39,000
Go
Shell
pipelin...
elm
1 commit

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

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.