I have several favorites lists:
<select id="List" multiple="multiple">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
I fire the event when I select:
$("select#List").change(function() {
});
I need to get the value of the clicked parameter that triggered the change event.
Example: if option 1 is already selected, and I select "option 2" that fires the .change () event, I want to get the value "option 2".
(I already read this post Get a click in a few drop-down lists , but this does not work for me).
source
share