How can I set a selected date of the jquery datepicker by adding 3 days to the actual date?
Like from 11/01/2011 to 11/04/2011
My current code doesn’t work!
<script type="text/javascript">
$(function() {$("#datepicker").datepicker();});
//Set DatePicker to actual date + 3 days
$('#dateselector').datepicker("setDate", new Date(date.getMonth()+"/"+(date.getDate()+3)+"/"+date.getFullYear()) );
</script>
Working example: http://jsfiddle.net/EryYr/1/
Quote from documentation: