title: Get value of an input type Range
body: <p>I have this code:</p>
  <pre><code>&lt;p class=&quot;slider1&quot;&gt;Your approximate total debt: 
    &lt;output name=&quot;slider_output1&quot; id=&quot;slider_output1&quot; for=&quot;form_slider1&quot;&gt;0&lt;/output&gt;&lt;br&gt;                                                   
    &lt;input type=&quot;range&quot; class=&quot;form_slider1&quot; name=&quot;form_slider1&quot; id=&quot;form_slider1&quot;
     value=&quot;0&quot; min=&quot;0&quot; max=&quot;60000&quot; step=&quot;100&quot; 
     oninput=&quot;slider_output1.value=form_slider1.value&quot; 
     onchange=&quot;slider_output1.value=value&quot;/&gt;  
                                                                                                                                                             
  &lt;/p&gt;
  </code></pre>
  <p>I need to get the range/slider value for condition statement.
  I tried using jQuery:</p>
  <pre><code>var slider1 = $(&quot;form_slider1&quot;).val();
  </code></pre>
  <p>but I got &quot;undefined&quot; when I alert the value.</p>
  <pre><code>alert(slider1);
  </code></pre>
  <p>Thank you guys in advance!</p>