Get the values of two input range with javascript
<p>I have two input type = range: </p>

<pre><code>&lt;input type="range" id="range_1" name="rangeA"&gt;
&lt;input type="range" id="range_2" name="rangeB"&gt;
</code></pre>

<p>I want to get the values and put them in a function. 
How can i do that? </p>