title: jQuery price slider filter
body: <p>I have created my jquery price slider but I am not sure how to filter my results so that as you slide you only see the products with that value in range.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="demo"&gt;
  
  &lt;p&gt;
      &lt;label for="amount"&gt;Price range:&lt;/label&gt;
      &lt;input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" /&gt;
  &lt;/p&gt;
  
  &lt;div id="slider-range"&gt;&lt;/div&gt;
  &lt;ul&gt;
          &lt;li&gt; product - £10 &lt;/li&gt;
          &lt;li&gt; product - £50 &lt;/li&gt;
          &lt;li&gt; product - £100 &lt;/li&gt;
          &lt;li&gt; product - £150 &lt;/li&gt;
          &lt;li&gt; product - £200 &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;​
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>$(function() {
      var options = 
          {
              range: true,
              min: 0,
              max: 500,
              values: [ 50, 300 ],
              slide: function( event, ui ) {
                  $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
              }
          };
  
          $( "#slider-range" ).slider(
              options
          );
          $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
              " - $" + $( "#slider-range" ).slider( "values", 1 ) );
      });
  </code></pre>
  
  <p>​
  My fiddle is <a href="http://jsfiddle.net/ktcle/uvJ8F/" rel="nofollow">http://jsfiddle.net/ktcle/uvJ8F/</a></p>