Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mateusmaso/jquery.selection
- Owner: mateusmaso
- License: mit
- Created: 2014-09-12T02:24:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-05T06:22:13.000Z (over 9 years ago)
- Last Synced: 2024-10-06T04:24:06.231Z (about 1 month ago)
- Topics: input-range, javascript, jquery, jquery-plugin
- Language: JavaScript
- Homepage:
- Size: 156 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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.