# Monthpicker **Repository Path**: mirrors/Monthpicker ## Basic Information - **Project Name**: Monthpicker - **Description**: Monthpicker 是 jQuery 的月历插件 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/monthpicker - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-17 - **Last Updated**: 2025-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README jQuery.monthpicker ------------------ ![jQuerymonthpicker screenshot](https://www.lugolabs.com/static/jquery_monthpicker_screenshot.png) Pick month and year with this jQuery plugin. #### Usage The plugin accepts a few options: * `years` array of years to select from * `topOffset` distance in pixels from the element offset * `onMonthSelect` event triggered when selecting a month Example: ```js $('#monthpicker').monthpicker({ years: [2015, 2014, 2013, 2012, 2011], topOffset: 6, onMonthSelect: function(m, y) { console.log('Month: ' + m + ', year: ' + y); } }); ``` See more at [examples](https://github.com/lugolabs/monthpicker/tree/master/examples) folder. #### Styles The HTML generated for the popup is shown below: ```html
``` Some initial styles are added in the [css/jquery.monthpicker.css](https://github.com/lugolabs/monthpicker/blob/master/css/jquery.monthpicker.css) file. You can change them as you please. #### Tests Run tests at [test](https://github.com/lugolabs/monthpicker/tree/master/test) folder with QUnit. #### Licence jQuery.monthpicker is licensed under the terms of the [MIT License](https://github.com/lugolabs/monthpicker/blob/master/MIT-LICENSE).