title: How to reset a jQuery UI slider?
body: <pre><code>    &lt;!-- dirty --&gt;
      &lt;head&gt;
      &lt;link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/&gt;
      &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"&gt;&lt;/script&gt;
  
      &lt;script&gt;
      $(function() {
          $( "#slider-range" ).slider({
              range: true,
              min: 0,
              max: 500,
              values: [ 75, 300 ],
              slide: function( event, ui ) {
                  $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
              }
          });
          $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) +
              " - $" + $( "#slider-range" ).slider( "values", 1 ) );
      });
      &lt;/script&gt;
  
      &lt;/head&gt;
  
      &lt;div class="demo"&gt;
  
      &lt;p&gt;
          &lt;label for="amount"&gt;Price range:&lt;/label&gt;
          &lt;input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" /&gt;
      &lt;/p&gt;
  
      &lt;div id="slider-range"&gt;&lt;/div&gt;
  
      &lt;/div&gt;
  
      &lt;button type="button" 
  onclick='$("#slider-range").slider("value", $("#slider-range").slider("option", "min") );'&gt;
  Test
  &lt;/button&gt; 
  </code></pre>
  
  <p>Clicking on the button does not reset the slider. Any clues?</p>