Hello, I'm trying to install a datepicker on my site with an input field, when I clicked, I should get a calendar, but for some reason I only have an input field with a preset date. Tell me what's wrong?

<script src="js/jquery_ui_datepicker/jquery_ui_datepicker.js"></script> <script src="js/jquery_ui_datepicker/i18n/ui.datepicker-ru.js"></script> <script src="js/jquery_ui_datepicker/timepicker_plug/timepicker.js"></script> <link href="js/jquery_ui_datepicker/timepicker_plug/css/style.css" rel="stylesheet" type="text/css" /> <link href="js/jquery_ui_datepicker/smothness/jquery_ui_datepicker.css" rel="stylesheet" type="text/css" /> <input class="datetime" value="2008-08-23 10:45:00" id="starttime"/> <script type="text/javascript"> jQuery(function(){ jQuery('input.datetime').datetime({ userLang : 'ru' }); }); </script> 

Link to the source http://xdan.ru/down/file/12 And to the site with the lesson http://xdan.ru/ispolzuem-datepicker-iz-jquery-ui.html

    1 answer 1

    Do it in this way

     jQuery('#starttime').datetimepicker({ lang:'ru', timepicker:false, format:'Ym-d', value:'2008-08-23 10:45:00' }); 

    Well, I have in any case.