JQuery Datepicker - Select only month, without year or day
I could've just created a standard 'select' dropdown to accomplish what is in this fiddle, but for consistency I needed a datepicker to enable selection of only months - without days or years.
RobertAttfield.com
HTML
<link rel="stylesheet" href="http://jquery-ui.googlecode.com/svn/tags/latest/themes/dark-hive/jquery-ui.css">
<div id="idMdph">
<fieldset>
<legend><img src="images/icons/mdph.png" /></legend>
<ul class="cols">
<input type="button" name="new_notif" value="Nouvelle Notification" class="new_notif" id="new_notif"/>
<li><label>Notification MDPH du * : </label><input type="text" name="date_notif_mdph" id="date_notif_mdph" value="15/20/2015"/></li>
<li><label>Type notif MDPH : </label> <input type="text" name="type_notif_mdph" id="ok" value="AVS"/></li>
</ul>
</fieldset>
</div>
JavaScript
$(document).ready(function(){
var $new_notif = $('#new_notif');
var $date_notif_mdph = $('#date_notif_mdph');
$new_notif.click(function() {
$date_notif_mdph.empty();
alert("ok");
});
});