On the page, I have a selection box (several) with many options. Now I want to respond to the last click to display some data using ajax.
Since the "click" event in the option element does not work in IE, I am currently using the "change" event.
The problem is that the “value” attribute and selectedIndex point to the first selected item, even if I select other options following the first.
The only way to get the last selected option is to compare the set of selected parameters before and after the "change" event.
Is there another way?
javascript html events select
Wikser
source share