title: jQuery slider is unknown
body: <p>How does this slider work?</p>
  
  <p><a href="http://jqueryui.com/demos/slider" rel="nofollow">http://jqueryui.com/demos/slider</a></p>
  
  <p>source given shows up nothing</p>
  
  <pre><code>&lt;style&gt;
      #demo-frame &gt; div.demo { padding: 10px !important; }
  &lt;/style&gt;
  &lt;script&gt;
      $(function() {
          $( "#slider" ).slider();
      });
  &lt;/script&gt;
  &lt;div class="demo"&gt;
      &lt;div id="slider"&gt;&lt;/div&gt;
  &lt;/div&gt;&lt;!-- End demo --&gt;
  </code></pre>
  
  <p>I did include jquery before adding this</p>
  
  <pre><code>&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>but it gives me</p>
  
  <blockquote>
    <p>SCRIPT438: Object doesn't support property or method 'slider'</p>
  </blockquote>
  
  <p>error.</p>
  
  <p>This is what entire code looks like</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8" /&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;style&gt;
              #demo-frame &gt; div.demo { padding: 10px !important; }
          &lt;/style&gt;
  
          &lt;div class="demo"&gt;
              &lt;div id="slider"&gt;&lt;/div&gt;
          &lt;/div&gt;&lt;!-- End demo --&gt;
  
          &lt;script&gt;
          $(function() {
              $( "#slider" ).slider();
              });
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What am I missing?</p>