title: Getting values from JQuery Slider
body: <p>I am currently implementing a jQuery slider on a web-application and need to get the values from the slider to use in a Javascript function. For example if the user selects the range 100,000 to 450,000 to send min_value=100,000 and max_value=450,000 to a Javascript function.</p>
  
  <p>How would I go abut this.</p>
  
  <p>See below the code for my slider example.</p>
  
  <pre><code>    $(function() {
            $("#price_slider").slider({
              range: true,
              min: 50000,
              max: 1000000,
              step: 1000,
              values: [350000, 700000 ],
              slide: function( event, ui ) {
                $( "#amount" ).val( "€" + ui.values[0 ] + " - €" + ui.values[1 ] );
                current_min_price: ui.values[0 ];
                current_max_price: ui.values[1 ]; 
              }
            });
            $( "#amount" ).val( "€" + $( "#price_slider" ).slider( "values", 0) + " - €" + $( "#price_slider" ).slider( "values", 1) );
          });
  </code></pre>
  
  <p>The slider looks as it should on the page, but I can't actually use it as it stands.</p>