<script language="JavaScript" src="jq.js"></script>
<script language="JavaScript" src="jq.date.js"></script>
<script language="JavaScript">

$(document).ready(function() {

    $('#trip input#leavedate, #trip input#returndate').datepicker({ dateFormat: 'yy-m-d', showOn: 'button', buttonImage: 'calendar.gif', buttonImageOnly: true }); // 日期格式:2008-11-22。
});

</script>
</head>

<body>
   
    <form id="trip" action="#">
 
                <div><label for="leavedate">出发日期:</label> <input type="text" id="leavedate" name="leavedate"/>
    </form>