JQuery: Create an array made out of the data- attributes of my select options
<p>I have a select multiple with some options. 
Each option has multiple data- attributes.
I would like to create an array that contains each of its data- values.
For example my code looks a lot like this: </p>

<pre><code>&lt;select multiple id='my_select'&gt;
&lt;option data-my_id='1' data-my_parent='3' data-my_name='option1'&gt;My first option&lt;/option&gt;
&lt;option data-my_id='2' data-my_parent='3' data-my_name='option2'&gt;My second option&lt;/option&gt;
&lt;option data-my_id='3' data-my_parent='3' data-my_name='option3'&gt;My third option&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>And the result I am looking for needs to be something like this: </p>

<pre><code>[1,3,option1], [2,3,option2], [3,3,option3]
</code></pre>

<p>I have researched how to create an array with one of the data- attribute value for each of the options, giving me this [1,2,3], but I have been unsuccessful in coming up with what I need.</p>

<p>Thanks a lot! </p>
