title: Doesn't work jquery ui datetimepicker (node.js + ejs + express)
body: <p>I'm trying to use this:
  <a href="http://trentrichardson.com/examples/timepicker/" rel="nofollow">http://trentrichardson.com/examples/timepicker/</a></p>
  
  <p>that's my code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script src="http://trentrichardson.com/examples/timepicker/js/jquery-1.7.1.min.js"&gt;     &lt;/script&gt;
      &lt;script src="http://trentrichardson.com/examples/timepicker/js/jquery-ui-1.8.16.custom.min.js"&gt;&lt;/script&gt;
      &lt;script src="http://trentrichardson.com/examples/timepicker/js/jquery-ui-sliderAccess.js"&gt;&lt;/script&gt;
      &lt;script src="http://trentrichardson.com/examples/timepicker/js/jquery-ui-timepicker-addon.js"&gt;&lt;/script&gt;
      &lt;link type="text/css" href="http://trentrichardson.com/examples/timepicker/css/ui-lightness/jquery-ui-1.8.16.custom.css" rel="stylesheet"&gt;   
  
  &lt;script&gt;
  
  $(function() {
    $('#dateTimePicker1').datetimepicker();
  });
  
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;%-body%&gt;      
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>that's the body.ejs:</p>
  
  <pre><code>&lt;input id="dateTimePicker1" class="hasDatepicker"&gt;&lt;/input&gt;
  </code></pre>
  
  <p>What I get is a simple input. Nothing happens when I click it. I get no errors in the console.  I need help solving that problem.</p>
  
  <p>upd(i have a routing file):</p>
  
  <pre><code>exports.index = function(req, res){
    res.render('index', { title: 'index' })
  };
  </code></pre>
  
  <p>I checked and the input is in the code after the page loading.</p>
  
  <p>But, the strange thing is that:I open the site with the author's addon (the first link in this post). Open the developer tools. edit html of the site - add new input right near the example input. name(and id) it example222. in console do </p>
  
  <pre><code>$('#example222').datetimepicker();
  </code></pre>
  
  <p>His input works, mine NOT! What kind of sorcery is that? :)</p>