How can you get the current pre-selected date, with .datepicker () ?
This is the code I have so far:
<script>
$(function () {
$.datepicker.setDefaults($.datepicker.regional["es"]);
$("#datepicker").datepicker({
dateFormat: 'dd/mm/yy',
firstDay: 1
});
});
</script>
Select date:
<input type="text" id="datepicker"/>