-
Notifications
You must be signed in to change notification settings - Fork 76
AltFormat Option
Benjamin Albert edited this page Feb 4, 2016
·
3 revisions
Type: String
Default: null.
Since: 2.8
The MonthFormat to be used for the AltField option. This allows one month format to be shown to the user for selection purposes, while a different format is actually sent behind the scenes. For a full list of the possible formats see the $.datepicker.formatDate() function.
Set the option upon init.
<pre>
$('.selector').MonthPicker({ AltFormat: "yy-mm" });
Get or set the option, after init.
//getter var disabled = $('.selector').MonthPicker('option', 'AltFormat'); //setter $('.selector').MonthPicker('option', 'AltFormat': 'yy-mm' );