I am using jQuery UI range slider to allow the user to define a range. Based on the user's selection I will then show/hide different divs.
In order to achieve that I use data-price="" that allow me to check if the value is bigger or smaller than that.
What I would like to achieve is:
- Have only one selection for the price rather than selection from left and right.
- I would like to keep the functionality where the bar is filling with colour based on selection. (in the example in grey)
I have tried changing range: true to range: false but I could not achieve the desired effect.
My JSFIDDLE example is here: https://jsfiddle.net/L47mo8bm/
I have tried the following but not sure why the logic is not working: https://jsfiddle.net/57axLd53/1/