I have a select tag that has an eventListener on change
.
Now I also have two different buttons that change it, that uses:
(selectTag).selectedIndex++;
The above does what I want to achieve, but it does not call my function callback on change
.
How would I go about doing that? Other Approaches welcomed.
I would prefer pure-JS solutions, (noJquery please).