Skip to content
Advertisement

Need an event to fire when selecting index in dropdown in JavaScript

I need an event in JavaScript which will fire when something is selected from dropdown. I am using onchange now, it does almost everything I want, but when I am clicking my dropdown and select index that was already selected, it won’t fire. And I need an event that acts like onchange, but fires every time even when I am selecting already selected option.

Is there something like that in JS?

Advertisement

Answer

It seems that you want something that is already answered in another question.

JQuery event to fire when a drop down is selected — but the value is not changed

https://stackoverflow.com/questions/11002421/jquery-event-to-fire-when-a-drop-down-is-selected-but-the-value-is-not-change

Hope this helps.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement