Datepicker not open


#1

Hi

i have an asp.net site with Bootstrap.

and i have this:

         <div class='col-sm-3'>
               <div class='input-group date' id='PassaportValidation'>
                 <asp:textbox ID="Textbox6" runat="server" class="form-control datepicker"/>
                      <span class="input-group-addon">
                      <span class="glyphicon glyphicon-calendar"></span>
                     </span>
                       </div>
                   </div>

<script type="text/javascript">
     $(function () {
        $('#PassaportValidation').datetimepicker();
       });
</script>

And when i click on the icon or textbox the datepicker wont open.

where is my error?

Thank's in advance


#2

did you link in jQuery library & UI ?

<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>