Slide Bar - increments/values and form submitting

Slide Bar - increments/values and form submitting

Hello,

I am quite new to this all so please excuse me if these are dumb questions.

Q1:
How do I use the below code to output the variables dollars1 and dollars0 into a hidden form field called min and max?

Q2:
I would like the denominations to go from 200-4k in hundreds then from 4k-1mil by +50K then 1mil - 20mil in +500K, is there a way to do that, if so how?

I sincerely appreciate any information, I hope your having a nice day,
Matt

    <span id="price"></span>

        <div id="slider-range"></div>
   

        <script type="text/javascript">
            $("#slider-range").slider({
                range: true,
                min: 500,
                max: 4000000,
                values: [350000, 500000],
                slide: slidePrice
            });
            function slidePrice(event, ui){
                var dollars0 = parseInt($("#slider-range").slider("values", 0));
                var dollars1 = parseInt($("#slider-range").slider("values", 1));
                $("#price").text('Search in the price range from $' + getPrice(dollars0) + ' to $' + getPrice(dollars1));
            }
            function getPrice(dollars) {
                var price = null;
                return dollars;
            }
            slidePrice();
        </script>




































    • Topic Participants

    • mg