Capture current selected option - multipleselect

Asked

Viewed 71 times

1

Given an Multiple select field, how to get, via javascript, the value of the option that was last selected (current)?

I tried to use the expression below, but the last value (in alphabetical order) is returned from the list of selected items, and not necessarily the last one selected.

$("option:selected:last",this)).val()

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.