Jul 18, 2014 in Date & Time 6769 views
Multiple Month Picker is a jQuery Mobile plugin for multiple month selection
Source: github.com
1. INCLUDE CSS AND JS FILES
<link href="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.css" rel="stylesheet" type="text/css" /> <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min.js"></script> <script src="jqm-mmp.js"></script>
2. HTML
<div id="mmp"></div>
3. JAVASCRIPT
$(document).ready(function() { $('#mmp').mmp(); });
Retrieve selected values:
$('#testarea').mmp('value');
Set values:
$('#testarea').mmp('value', ['2014-01', '2014-02', '2014-07']);
4. OPTIONS
text:'Multiple Month Picker', theme:'a', id:'mmp', months: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], value: []
Tagged with:
multiple month picker
jquery mobile
month selection
month picker
jquery mobile plugin
picker
mobile month picker
Related Articles