Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Updated documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnasir committed Mar 6, 2016
1 parent aab945e commit 5fa2d46
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@ Include script after the jQuery library (unless you are packaging scripts someho
<script type="text/javascript" src="/path/to/jquery.cascadingdropdown.js"></script>
```

## Usage

To initialize the plugin, simply attach it to the parent group of dropdown elements.

```html
<div id="dropdowns">
<select class="step" name="typeId">
<option value="">Select type</option>
</select>
...
</div>
```

```javascript
$('#dropdowns').cascadingDropdown(options);
```

## Options

#### usePost (boolean)
Expand Down Expand Up @@ -200,7 +217,9 @@ Event handler triggered when the dropdown value is changed. The event handler is

Destroys the instance and reverts everything back to their initial state.

$('#dropdown').cascadingDropdown('destroy');
```javascript
$('#dropdown').cascadingDropdown('destroy');
```

<sub>Added: 1.2.7</sub>

Expand Down

0 comments on commit 5fa2d46

Please sign in to comment.