get an array of data-val values from a list of elements of a certain css class
<p>I would like to get an array of the values from the data-val attributes of <code>.my-li</code> elements</p>

<pre><code>&lt;ul id="stuff"&gt;
&lt;li class='my-li' data-val='1'&gt;
&lt;li class='my-li' data-val='2'&gt;
&lt;li class='my-li' data-val='3'&gt;
&lt;li class='my-li' data-val='4'&gt;
&lt;li class='my-li' data-val='5'&gt;
&lt;ul&gt;
</code></pre>

<p>here the result should be [1,2,3,4,5];</p>

<p>anybody knows a good way of doing this ?</p>
