Month Picker

A simple yet good looking JavaScript month picker

Download .zip Download .tar.gz View on GitHub

Dependencies

None (so far).

How to use it

var monthPicker = new MonthPicker();

monthPicker.model().set('year', 2013);
monthPicker.model().set('month', 7);  //July

document.body.appendChild(monthPicker.el);

monthPicker.model().on('change', function() {
  var year = monthPicker.model().get('year');
  var month = monthPicker.model().get('month');

  console.log('year:', year);
  console.log('month:', month);
});