Skip to content

tlemens/jquery-ui-monthpicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

jQuery UI Monthpicker

Pick a month

HTML

<input class="js-monthpicker" type="hidden"><input type="text">
Field Value
Hidden Actual date (1th of the picked month)
Text Picked month

jQuery

$('.js-monthpicker').monthpicker();

You may want to customize the format:

$('.js-monthpicker').monthpicker({ altFormat: 'MM y' });

Style

Use the ui-monthpicker class for styling.

.ui-monthpicker {
  margin-top: 18px;
}
.ui-monthpicker .ui-datepicker-month {
  display: none;
}
.ui-monthpicker td span {
  padding: 5px;
  cursor: pointer;
  text-align: center;
}

Dependencies

jQuery UI Datepicker

License

MIT

About

A jQuery UI monthpicker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published