Good evening,
First of all I want to compliment the "comunity", a source of valuable resources and useful tips for those who, like me, you are approaching the wonderful world of jQuery!
I have a problem related to the extraction of values from a multiple select.
Basically, each option has two values: name and email. For each selection I want to place separately the two values in two different <div>, eg. the names in the class nomi_selezionati and emails in one class email_selezionate.
In php I would be able to get two string variables using the target (comma) but do not know how to do it with jQuery, I tried including the official documentation and I saw that. Map () and. Grep () should do the trick, but not I can integrate the function with the extraction of string from the select statement. For simplicity, place the link to JSFIDDLE. Thank you in advance for your help I want to give. Greetings.