title: jQuery: How to calculate the maximal attribute value of all matched elements?
body: <p>Consider the following HTML:</p>
  
  <pre><code>&lt;div class="a" x="6"&gt;&lt;/div&gt;
  &lt;div class="a" x="9"&gt;&lt;/div&gt;
  &lt;div class="a" x="2"&gt;&lt;/div&gt;
  ...
  &lt;div class="a" x="8"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>How would you find the maximal <code>x</code> value of all <code>.a</code> elements ?</p>
  
  <p>Assume that all <code>x</code> values are positive integers.</p>