I'm using a price slider in my site to select products between a certain price range, but I'm not really sure how to do this. I am using the price range slider from http://www.eyecon.ro/bootstrap-slider/.
<!-- language: lang-html --><div class='priceslider'>
<p>Range selector, options specified via data attribute.</p>
<div class="well">
Filter by price: <b>€ 10</b>
<input id="pricelimit" type="text" class="span2" value=""
data-slider-min="10"
data-slider-max="200"
data-slider-step="5"
data-slider-value="[20,100]"/>
<b>€200</b>
</div>
</div>
<!-- language: lang-js -->
$(document).ready(function() {
$("#pricelimit").slider({});
});
How do I get the value(s) from this price range slider and how do I use them in a query to select products between those price values?