datepicker: unable to set spanish region
I need datepicker to work in spanish region (day/month/year). But I always get the month first. I also downloaded a filed called jquery.ui.datepicker-es.js and put it in the same directory where this file is jquery-ui-1.8.4.custom.min.js but still it dos not work. I know it worked in the example. What am I doing wrong??
- <!DOCTYPE html>
<html>
<head>
<link href="css/ui-lightness/jquery-ui-1.8.4.custom.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.4.custom.min.js"></script>
<script>
$(document).ready(function() {
$("#datepicker").datepicker($.datepicker.regional['es']);
});
</script>
</head>
<body style="font-size:62.5%;">
<p>Date: <input type="text" id="datepicker" size="10" maxlength="10">
</p>
</body>
</html>