I'm trying to add 1 year to a textbox from a date picked by and end
user can someone help me with this?
Currently this is what I'm using but its just appending 365 to the end
of the date...
<script type="text/javascript">
$(function() {
$("#vis_los_date").datepicker({changeMonth: true,changeYear:
true,
onClose: function(set_date) {
document.getElementById('los_date').value =
document.getElementById('vis_los_date').value;
}
});
$("#pol_effdate").datepicker({changeMonth: true,changeYear:
true,
onClose: function(set_date) {
document.getElementById('pol_expdate').value =
document.getElementById('pol_effdate').value+365;
}
});
$("#pol_expdate").datepicker({changeMonth: true,changeYear:
true});
});
</script>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---