You can notice that if you put size into select – onchange stops working. There is "onfocus" even but it doesn’t work either because you have to click outside select every time.
Is there a way to make a working "onchange" event for select with size?
<select name="fruits" size="5">
<option>banana</option>
<option>cherry</option>
<option>strawberry</option>
<option>durian</option>
<option>blueberry</option>
</select>
2
Answers
I get all these 9 triggered when I click anything in Chrome and Firefox.
I strongly recommend to use the addEventListener in any case.
you can try Jquery: