neeko
neeko

Reputation: 2000

datepicker doesn't display

I have verified all links are correct but datepicker doesn't show at all!

 <link href="css/smoothness/jquery-ui-1.10.3.custom.css" type="text/css" rel="stylesheet" />
 <script type="text/javascript" src="js/jquery-1.9.1.js"></script>
 <script type="text/javascript" src="js/jquery-ui-1.10.3.custom.js"></script>

script:

<script>
       $(document).ready(function () {
           $(".Datepicker").datepicker();
       });  
</script>

Div:

<h2 class="demoHeaders">Datepicker</h2>
<div id="datepicker"></div>

Upvotes: 0

Views: 87

Answers (1)

Nisanth Sojan
Nisanth Sojan

Reputation: 1099

the jquery selector is wrong

$(document).ready(function () {
     $("#datepicker").datepicker();
});

you should use the id

Upvotes: 1

Related Questions