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

c# - Can I intercept a SOAP response in .NET before a content type binding mismatch ProtocolException? -

ruby - Trying to change last to "x"s to 23 -

python - Terminate a gnome-terminal opened with subprocess -