Home jquery Datepicker using JQuery

Datepicker using JQuery

Author

Date

Category

Hello, I’m trying to install a datepicker on my site with an input field, when you click on it, the calendar should pop up, but for some reason I only have an input field with a preset date. Tell me what’s wrong?

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

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


Answer 1, authority 100%

do it

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

Well, at least that’s the case for me.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions