json - jquery range slider values compared to outside value -


i using range slider display range of prices, 1000 3000. outside of slider have objects in json file of have different prices. want display objects price falls between values user has chosen. slider:

$(function() {    $("#slider-range").slider({        range: true,        min: 1000,        max: 3000,        values: [1250, 2000],        slide: function(event, ui) {            $("#amount").val("$" + ui.values[0] + " - $" + ui.values[1]);        }    });    $("#amount").val("$" + $("#slider-range").slider("values", 0) +        " - $" + $("#slider-range").slider("values", 1)); }); 

i guess think should this?

if ((values = < data.objects[i].price) || (values => data.objects[i].price)) {   //.... } 


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -