datepicker not working exactly
I am trying to use the datepicker UI element in a form.
that does not use the css I want (I would like the smoothness skin), and the functions on the calendar do not all show up (like next and previous month).
Attached is a screenshot of what the resulting UI looks like after a focus event on the input field
Below is the code used for the page
- <?xml version="1.0"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title>test for datepicker</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="style.css" type="text/css" />
- <style type="text/css">
- @import "css/smoothness/jquery-ui-1.7.2.custom.css";
- <!-- jquery.datepick.css -->
- </style>
- <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <!-- jquery.min.js -->
- <script type="text/javascript" src="jquery-ui-1.7.2.custom.min.js"></script> <!-- jquery.datepick.js -->
- <script type="text/javascript" src="ui.core.js"></script>
- <script type="text/javascript" src="ui.datepicker.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $("#datepicker").datepicker();
- $('#datepicker').datepicker('option', 'showOn', true);
- });
- </script>
- </head>
- <body>
- <input type="text" id="datepicker" />
- </body>
- </html>
I am guessing that I am not specifying the correct css file or not initializing the correct options on datepicker. I would very much appreciate being pointed to a working example of datepicker.
Thanks