Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zenorocha/select

Programmatically select the text of a HTML element
https://github.com/zenorocha/select

Last synced: 14 days ago
JSON representation

Programmatically select the text of a HTML element

Awesome Lists containing this project

README

        

# select

[![Build Status](http://img.shields.io/travis/zenorocha/select/master.svg?style=flat)](https://travis-ci.org/zenorocha/select)

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](https://github.com/zenorocha/select/archive/master.zip) file.

## Usage

### Standalone

```html

```

```js
var input = document.querySelector('input');
var result = select(input);
```

### Browserify

```js
var select = require('select');
```

```js
var input = document.querySelector('input');
var result = select(input);
```

## License

[MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha