Skip to content

pjnovas/MonthPicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

#jQuery plugin - Month Picker

This is another picker with the only difference is thought for months. The first idea came up when I needed a date picker but only for months, without days.

##How to Use

$("#someInput").MonthPicker();

That's it!

  • Browser compatibility: IE7+, FF3.6+, Chrome6+

###Present selection

$("#someInput").MonthPicker({ hasPresent: true });

This will set an "Actual" button for "today" month wich will be year 9999.

###Manage From/To dates

var $fromInput = $("#fromInput").MonthPicker();
var $toInput = $("#toInput").MonthPicker({ hasPresent: true });
$fromInput.MonthPicker('SetMonthPickerTo', $toInput);
$toInput.MonthPicker('SetMonthPickerFrom', $fromInput);

###Set Default Date

$("#someInput").MonthPicker({ currentDate: new Date() });

###Only Year Picker

$("#someInput").MonthPicker({ onlyYear: true });

###Set/ Get Date

$("#someInput").MonthPicker('SetDate', new Date());
var selectedDate = $("#someInput").MonthPicker('GetDate');

###Other methods:

$("#someInput").MonthPicker('SetMaxDate', [Date value]);
$("#someInput").MonthPicker('SetMinDate', [Date value]);
$("#someInput").MonthPicker('SetMonthPickerTo', [MonthPicker value]);
$("#someInput").MonthPicker('SetMonthPickerFrom', [MonthPicker value]);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published