jQuery Slider Maintain Value on Postback
<p>I am using a jQuery UI slider without any troubles other than this: I have an ASP.NET hidden field that stores whatever the user selected with the slider. Say 25, or 50. I need that server control so that I can use its value after other steps are performed. It works but when the page does the postback, the slider reverts to where it originally was. In other words, the user selects 50 on the slider, the post to the server goes and retrieves 50 records. But the slider goes back to 25 as that was its initial value. How do I fix this so that it keeps the setting stored in the hidden field control (or what the user selected)?</p>

<p>I have added the code here:</p>

<pre><code> $(document).ready(function () {
        //setup slider
        $('#slider').slider({
            range: "max",
            min: 25,
            step: 25,
            max: 100,
            value: 75,
            slide: function (event, ui) {
                $('#radiusText').val(ui.value);
                //set the hiddenfield for server postback of radius
                $("#&lt;%= Radius.ClientID%&gt;").val(ui.value);
            }
        });
        $('#radiusText').val($('#slider').slider('value'));


    });
</code></pre>
