Display Inline + populate another form field?

Display Inline + populate another form field?


I have the following bit of code in my page :
    <script type="text/javascript">
    $(function() {
        $("#orderinhandsdate").datepicker({minDate: +1});
        $("#orderinhandsdate").datepicker();
    });
    </script>
<div id="orderinhandsdate"></div>
<input type="text" name="alternate" id="alternate" />
How can I adapt my code so that it also populates the text input field
named "alternate" when a date is selected using the datepicker?
- Yvan