I'm trying to run a function when an option is clicked in a select dropdown menu. I tried the onChange event (inline html)...it's working but only runs the function when I change for another option (I know that's what onChange does). But what I need is that when someone clicks on the option, the function runs right away.
That's my html code:
<select id="Bname" onchange="updateClicked()" name="Bname"></select>
So like I said, the function is working correctly, and the onchange event works, but I need something that would trigger the function as soon as the option is clicked inside the select menu.
Thanks