I have an issue in making datepicker regional.
<script type="text/javascript">
$(document).ready(function () {
$(function () {
var culture= $("#culture").val();
$("#dob").datepicker({
changeMonth: true,
changeYear: true,
dateFormat: 'dd-M-yy',
yearRange: '-90:-15',
defaultDate: '-90y'
});
$.datepicker.setDefaults($.datepicker.regional[""]); //need en-In as default region
// $("#dob").datepicker($.datepicker.regional["en"]);
$("#dob").datepicker("option",
$.datepicker.regional[culture]);
});
});
</script>
Issue :dob textbox not displaying value in edit mode. *WHY??<*br/>
If i remove all below lines of code that i used for making datepicker regional then all everything works fine for me.
This is not the correct way i think, just try it and let me know if it works?