title: Set max value of three input numbers together
body: <p>I have three input numbers:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input min="0" name="cat1" step="1" type="number" max="50" value="0" /&gt;            
  &lt;input min="0" name="cat2" step="1" type="number" max="50" value="0" /&gt;
  &lt;input min="0" name="cat3" step="1" type="number" max="50" value="0" /&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Currently the max value is 50. I would like the max for all three together to be 50 aswell.</p>
  
  <p>How can I solve this with javascript or jquery?</p>