Given this markup:
// Calendar.html?date=1/2/2003
<script>
$(function() {
$('.inlinedatepicker').datepicker();
});
</script>
...
<div class="inlinedatepicker" id="calendar"/>
This will display an inline datepicker with very little effort (awesome!). How do I preset the datepicker to the date passed in via the query string?
Note that in this case, I don’t have an input box–just a calendar attached to a div.
This should work, though you may run into locale issues (specifically, M/D/Y vs. D/M/Y).