Newbie needs help with Datepicker insertion into PHP doc

Newbie needs help with Datepicker insertion into PHP doc


Hi. I've never used a jQuery UI widget before and I want to try the
Datepicker. I've uploaded the package that I've downloaded from JQUI
to my root web directory. I need to understand where to put files and
code for making the widget popup on a date field on my page. Below is
what I have in the Head section, but is this right and what do I put
in my form for making it appear?
<link type="text/css" href="css/themename/jquery-ui-1.7.1.custom.css"
rel="Stylesheet" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery-
ui-1.7.1.custom.min.js"></script>
        <script type="text/javascript">
            $(function(){
                // Datepicker
                $('#datepicker').datepicker({
                    inline: true
                });
                //hover states on the static widgets
                $('#dialog_link, ul#icons li').hover(
                    function() { $(this).addClass('ui-state-hover'); },
                    function() { $(this).removeClass('ui-state-hover'); }
                );
            });
        </script>