https://github.com/toddself/jquery.selectinator
Allows you to select DOM elements to be yanked out of the page and provided to a script.
https://github.com/toddself/jquery.selectinator
Last synced: 2 months ago
JSON representation
Allows you to select DOM elements to be yanked out of the page and provided to a script.
- Host: GitHub
- URL: https://github.com/toddself/jquery.selectinator
- Owner: toddself
- License: mit
- Created: 2012-08-07T16:32:07.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-08-08T14:31:13.000Z (almost 14 years ago)
- Last Synced: 2026-03-25T19:50:45.051Z (3 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jQuery.Selectinator
This plugin allows you to designate a section of your DOM as an object-level
clipboard -- that is defined elements contained as child nodes can be selected
by clicking on them. When selected they are added to an internal clipboard.
When the user is finished, these items can be returned from the clipboard
and the items themselves pulled from the DOM.
Please see the [demo](http://toddself.github.com/jquery.selectinator/demo.html)
or the [project home](http://toddself.github.com/jquery.selectinator) for more.
## Usage
```html
```
```javascript
$('#test_div').selectinate();
$('#test_div').data('selectinate').getClipboard(); // see what's there
.yankSelections(); // return what's there and pull the elements from the DOM
.clearClipboard(); // clear it all and start over
```