title: How to resolve Cannot read property 'timepicker' of undefined error
body: <p>I am trying to implement the Jquery datetime picker on web page but keep getting the following error:</p>
  
  <p>Uncaught TypeError: Cannot read property 'timepicker' of undefined</p>
  
  <p>I downloaded the timepicker add on from here:</p>
  
  <p><a href="http://trentrichardson.com/examples/timepicker/#basic_examples" rel="noreferrer">http://trentrichardson.com/examples/timepicker/#basic_examples</a></p>
  
  <p><a href="http://trentrichardson.com/examples/timepicker/jquery-ui-timepicker-addon.js" rel="noreferrer">http://trentrichardson.com/examples/timepicker/jquery-ui-timepicker-addon.js</a></p>
  
  <p>Here is the section of the code generating the error:</p>
  
  <pre><code>$.ui.timepicker = $.ui.timepicker || {};
  if ($.ui.timepicker.version) {
      return;
  }
  </code></pre>
  
  <p>On my web page I have the following:</p>
  
  <pre><code>&lt;script type="text/javascript" src="/Scripts/jquery-lib/jquery-2.0.3.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"  src="/Content/bootstrap/js/jquery-ui-timepicker-addon.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"  src="/Content/bootstrap/js/jquery.ui.datepicker.js"&gt;&lt;/script&gt;
   &lt;script type="text/javascript"  src="/Content/bootstrap/js/jquery-ui-sliderAccess.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>And script:</p>
  
  <pre><code>&lt;script&gt;
      $(function () {
          $("#datetimepicker").datepicker();
      });
  </code></pre>
  
  <p></p>