prepopulate with one year ahead
Hi
I have two fields
<input id="in_date" name="in_date" type="text" />
<input id="out_date" name="out_date" type="text" />
What I need when I select a date in in_date field I have to get 1 year from now in out_date.
For example if in in_date I select "11/19/2010" I have to get out_date as 11/20/2011
I tried like
<script type = "text/javascript" >
jQuery(document).ready(function(){
jQuery('#in_date').datepicker({ altField: "#out_date",
altFormat: "mm/dd/yy",showStatus: true,
});
</script>
But in above how can I add 1 year. Is it possible? Please help
Thanks
Tom