title: How to get html range input type's max value through javascript?
body: <p>If I have set:</p>
  <pre><code>&lt;input class=&quot;slider&quot; type=&quot;range&quot; min=&quot;0&quot; max=&quot;100&quot;&gt;
  &lt;input class=&quot;slider&quot; type=&quot;range&quot; min=&quot;0&quot; max=&quot;255&quot;&gt;
  </code></pre>
  <p>How can I use jQuery/JavaScript to get the min and max value?</p>
  <p>I want to do something like this later, I can get the max value and parse it to a variable <code>maxValue</code>.</p>
  <pre><code>if (maxValue == 100) {console.log(&quot;100&quot;);}
  else if (maxValue == 255) {console.log(&quot;255&quot;);}
  </code></pre>