I've got three inputs:
<input type='number'>
<input class='datepicker'>
<input class='datepicker' readonly='readonly'>
The datepicker is simple, as that:
<script>
$(function()
{
$('.datepicker').datepicker({ dateFormat: 'yy-mm-dd' });
});
</script>
The first is for setting number of weeks, for example 2. The second is for setting the start date. How can I make that in the third input (which is readonly) will be output of the result date of the date that has been set plus number of weeks?
Like when I set 2 weeks and then use the first datepicker to set 2012-12-07, then it will output into third (readonly) input 2012-12-21 ?
Thanks in advice!