Get all values of a Dropdownlist which is not multiple enabled
Hi all,
I was wondering if it is possible to retrieve all values of a dropdownlist which is not MULTIPLE enabled.
This is the code i have that may work on a multiple enabled dropdownlist.
But in my case, i dont want to allow the user to select more than one value from the dropdownlist.
var values = []; $('#my_dropdown option').each(function() { values.push( $(this).attr('value') ); });
And on submit, i want to post the entire array of content on the dropdownlist. Is it possible? Someone please guide me.
Thanks in advance!