Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kanety/jquery-simple-selstore


https://github.com/kanety/jquery-simple-selstore

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# jquery-simple-selstore

A jquery plugin for multiple selection that stores selected items in storage.

## Dependencies

* jquery

## Installation

Install from npm:

$ npm install @kanety/jquery-simple-selstore --save

## Usage

Build html as follows:

```html


title1

title2



```

Then run:

```javascript
$('#listview').simpleSelstore('#selector');
```

### Options

Store selected elements in the web storage:

```javascript
$('#listview').simpleSelstore('#selector', {
store: 'session', // or 'local'
storeKey: 'YOUR_STORE_KEY'
});
```

## License

The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).