title: Uncaught TypeError: undefined is not a function while using jQuery UI
body: <p>I haven't used jQuery before, and I wanted to use <code>DateTimePicker</code> plugin on my web page.</p>
  
  <p>I downloaded the plugin file and placed them in the same directory as the HTML files.</p>
  
  <p>I directly applied the code at <code>How to use it?</code> in <a href="http://xdsoft.net/jqplugins/datetimepicker/">http://xdsoft.net/jqplugins/datetimepicker/</a>.</p>
  
  <p>It threw the following error.</p>
  
  <blockquote>
    <p>Uncaught TypeError: undefined is not a function pixelcrawler:61 (anonymous function)</p>
  </blockquote>
  
  <p>My code follows.</p>
  
  <pre><code>&lt;script type='text/javascript' src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" type="text/css" href="file:///jquery.datetimepicker.css"/ &gt;
  &lt;script src="file:///jquery.datetimepicker.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      jQuery('#datetimepicker').datetimepicker();
  &lt;/script&gt;
  
  &lt;div class="container"&gt;
    &lt;div class="text-center"&gt;
      &lt;div class="page-header"&gt;
        &lt;h1&gt;${conf['title']} &lt;small&gt;${conf['description']}&lt;/small&gt;&lt;/h1&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="text"&gt;
        &lt;input id="datetimepicker" type="text" &gt;
                                          .
                                          .
                                          .
                                          .
                                          .
  </code></pre>
  
  <p>I could not figure out what the problem was. I have tried many other seemingly likely options, but it just did not work either.</p>
  
  <p>(The ${} tags are used for the <code>Mako</code> template language. I am using <code>Cherrypy</code>.)</p>
  
  <hr>
  
  <p>UPDATE:</p>
  
  <p>I figured out the source of the problem.</p>
  
  <p>It's from <code>jQuery('#datetimepicker').datetimepicker();</code>.</p>
  
  <p>When tested, the <code>datetimepicker()</code> function was undefined. Maybe the way I imported the library was wrong?</p>