Datepicker using jQuery
Hello I'm trying to install a datepicker on my site with the input field, when you click on it, the calendar should pop up, but for some reason I only have the 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 code http://xdan.ru/down/file/12 And to the site with the lesson http://xdan.ru/ispolzuem-datepicker-iz-jquery-ui.html
0
1 answers
Do this
jQuery('#starttime').datetimepicker({
lang:'ru',
timepicker:false,
format:'Y-m-d',
value:'2008-08-23 10:45:00'
});
Well, I have at least so.
1
Author: Alexander Sizintsev, 2016-03-26 10:41:29