Fork me on GitHub

Datepicker

<textarea class="form-control" type="text" placeholder="mm/dd/yy">01/07/14 — 01/08/14 — 01/19/14</textarea>
YUI().use(
  'aui-datepicker',
  function(Y) {
    new Y.DatePicker(
      {
        trigger: 'textarea',
        mask: '%m/%d/%y',
        calendar: {
          selectionMode: 'multiple'
        },
        popover: {
          zIndex: 1
        },
        panes: 2
      }
    );
  }
);