I have a multi select element in jQuery.
Here is an example.
<select multiple id="multiple">
<option value="1" type="Alice">Option 1</option>
<option value="2" type="Bob">Option 2</option>
</select>
I know I can get all the values that are selected by doing $("#multiple").val();
How can I also get the type attributes of the selected options?