IonDen / ion.rangeSlider

jQuery only range slider
http://ionden.com/a/plugins/ion.rangeSlider/en.html
MIT License
2.56k stars 508 forks source link

Slider does not set default value for customized value #722

Closed fzhan closed 4 years ago

fzhan commented 4 years ago

Form controller: <input type="text" id="price_range" name="price" class="" value="$$" data-from="$$"/>

JS:

                $("#price_range").ionRangeSlider({
                    values: [
                        "Free", "$", "$$", "$$$", "$$$+"
                    ],
                    type: 'single',
                    grid: true
                });

Yet slider always at "Free"

fzhan commented 4 years ago

value=0 will set to "Free", value=1 will se to "$"