I have dropdown <select> with id my_dropdown. I allow multi-select. I know how to pull the selected value(s) using jquery:
var values = $('#my_dropdown').val();
This will return an array of values if I select multiple. I also need to get all the values in the dropdown regardless of what is selected. How can I use jquery similarly to get all the values in the dropdown given that id?