Skip to content

Commit

Permalink
Make dependency on input elements more obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
jonthornton authored Sep 3, 2017
1 parent f491b39 commit 3e23953
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ var container = document.getElementById('container')
var datepair = new Datepair(container, options);
```

Where ```#container``` contains time/date input elements with the appropriate class names. ```options``` is an optional javascript object with parameters explained below.
Where `#container` contains time/date `<input />` elements with the appropriate class names. `options` is an optional javascript object with parameters explained below.

You can also install via [Bower](http://bower.io/) with `bower install datepair.js`.
Note that Datepair is triggered by `change` events and won't work unless the container has some `<input />` elements.

## Options

Expand Down Expand Up @@ -143,6 +143,10 @@ $('#some-container').datepair({
});
```

## Packaging

Install via [Bower](http://bower.io/) with `bower install datepair.js`.

## Help

Submit a [GitHub Issues request](https://github.com/jonthornton/Datepair.js/issues/new).
Expand Down

0 comments on commit 3e23953

Please sign in to comment.