Reputation: 69
Hello everybody I'm very new in Jquery.
I have this code:
$("#dateinput").datepicker({
dateFormat: "yy-mm-dd",
beforeShowDay: beforeShowDayHandler,
showOn: 'both',
onClose: function (dateText, inst) {
$(this).attr("disabled", false);
},
beforeShow: function (input, inst) {
$(this).attr("disabled", true);
}
});
function beforeShowDayHandler(date) {
if (self.SelectedDayValue != -1) {
if (date.getDate() != 1) {
return [false, '', 'selected'];
}
}
return [true, ''];
}
I need to set it in different locales. How can I add to it a couple of locales for user to choose??
Upvotes: 1
Views: 1341
Reputation: 223
Here is the Example, click on view source
http://jqueryui.com/datepicker/#localization
Upvotes: 1