## jQuery Tree Multiselect

**This plugin allows you to replace a `select` element and replace it with a nice sortable, treeview element.**

### Usage
```
$("select").treeMultiselect(data);
```

#### Data
The `data` must be an object, with keys as the section names and the values as the items.

A simple example:
```
var data = {
  "section1": ["item1", "item2", "item3"],
  "section2": "super cool single element"
};
```

You can also have nested sections.
```
var data = {
  "level1": ["an item", "another item", {
      "level2": ["whoa", "awesome"]
    }, "more stuff"];
};
```

As you can see, you can mix any combination of objects, arrays, strings, integers, cats, or whatever you want your selections to look like.

#### Options
You can also pass in options alongside your data. ex `.treeMultiselect(data, options)`. It is an object where you can enable the following features:

Option name    | What it does
-------------- | ---------------
`sortable`     | Selected options can be sorted by dragging (requires jQuery UI)

### Installation
Put `jquery.tree-multiselect.js` and use it on your web page. The css file is optional and provides only a suggestion of what I envisioned this plugin to be.

### License
This is MIT licensed. Do as you wish :)

## jQuery Tree Multiselect

**This plugin allows you to replace a `select` element and replace it with a nice sortable, treeview element.**

### Usage
```
$("select").treeMultiselect(data);
```

#### Data
The `data` must be an object, with keys as the section names and the values as the items.

A simple example:
```
var data = {
  "section1": ["item1", "item2", "item3"],
  "section2": "super cool single element"
};
```

You can also have nested sections.
```
var data = {
  "level1": ["an item", "another item", {
      "level2": ["whoa", "awesome"]
    }, "more stuff"];
};
```

As you can see, you can mix any combination of objects, arrays, strings, integers, cats, or whatever you want your selections to look like.

#### Options
You can also pass in options alongside your data. ex `.treeMultiselect(data, options)`. It is an object where you can enable the following features:

Option name    | Type     | Default | Description
-------------- | -------- | ------- | ---------------
`sortable`     | boolean  | false   | Selected options can be sorted by dragging (requires jQuery UI)

### Installation
Put `jquery.tree-multiselect.js` and use it on your web page. The css file is optional and provides only a suggestion of what I envisioned this plugin to be.

### License
This is MIT licensed. Do as you wish :)

Add more descriptive attributes to the option table
Add more descriptive attributes to the option table
