I'm trying to use jquery UI. I download everything and follow the instruction, I add such code in my html:
<link type="text/css" href="/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript">
$(function() {
$( "#id_myDate" ).datepicker({
inline: true
});
});
</script>
.....
<div>Date: <input type="text" id="id_myDate" name="deadLine"></div>
When I load this page, the Datepicker looks so weired.
What's wrong? When I download jquery UI, I open the index.html and everything works fine(including datepicker), but when I put it into my app, it looks bad.
BTW. My browser is Chrome(I test this in firefox too, same problem), and I'm working on a google appengine app in python.
Thank you.
------------------------EDIT---------------------------
I'm sorry. Because this is a google appengine, so I should configure my static files, such as js and css. I forget to configure my css files in app.yaml. Now, I add this in yaml file:
- url: /js
static_dir: js
- url: /css
static_dir: css
js and css are the name of dir where these files located. Thank you very much.