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

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.

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


this is a paragraph


this is another asdkfjdfsajdhf paragraph




```
```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
```