Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mateusmaso/jquery.selection

jQuery plugin for handling selections
https://github.com/mateusmaso/jquery.selection

input-range javascript jquery jquery-plugin

Last synced: 11 days ago
JSON representation

jQuery plugin for handling selections

Awesome Lists containing this project

README

        

jquery.selection [![Build Status](https://travis-ci.org/mateusmaso/jquery.selection.svg?branch=master)](https://travis-ci.org/mateusmaso/jquery.selection)
================

jQuery plugin for handling selections.

## Features

* Save selection using ```saveSelection``` method.
* Restore selection using ```restoreSelection``` method.

## Dependencies

* jquery.js (>= 2.1.0)

## Examples

```javascript
var textarea = $("textarea:focus");

textarea.saveSelection();
textarea.blur();
textarea.restoreSelection();
textarea.hasSelection();
```

## License

Copyright (c) 2013-2014 Mateus Maso. Released under an MIT license.