title: How do i get current value from bootstrap slider?
body: <p>This is related to my question which i asked in this link <a href="https://stackoverflow.com/questions/31019259/how-do-i-get-min-and-max-value-of-bootstrap-slider">How do i get Min and Max value of Bootstrap slider?</a></p>
  
  <p>I was not able to get answer for this particular question in that discussion, thats why i planed to ask it as new question. </p>
  
  <p>What i need is to get current min and max value from bootstrap slider control in my javascript.</p>
  
  <p>This is how my control looks like</p>
  
  <pre><code>&lt;input id="rbSlider" type="text" class="span2" value="" data-slider-min="0" data-slider-max="1000" data-slider-step="5" data-slider-value="[0,1000]" /&gt;
  </code></pre>
  
  <p>And in my button click i tried to get its min ans max value using following</p>
  
  <pre><code>var min = $('#rbSlider').data('slider-min');
  var max = $('#rbSlider').data('slider-max');
  </code></pre>
  
  <p>But it always returns Min as 0 and Max as 1000 even its set as Min 2 and Max 10.</p>
  
  <p>How do i get 2 and 10 in my javascript?</p>