Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple datepicker plugin for Mootools
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Demos
Docs
Source
README.md
package.yml

README.md

MooDatePicker

MooDatePicker is a simple date picker for MooTools.

How to use

To use MooDatePicker, you need one or more elements to use as a datepicker, like a form input. Just call the constructor with the element(s) as first parameter and the options object as second parameter.

Example

HTML:

<input name="date" type="text" data-moodatepicker />

JavaScript:

new MooDatePicker(document.getElements('input[data-moodatepicker]'), {
    onPick: function(e, date){
        this.element.set('value', date.format('%e %B %Y'));
    }
});
Something went wrong with that request. Please try again.