I have a selectbox called 'nnummer' that is being populated when selectbox 'relatie' is being changed.
This is working fine. But now I want to add a functionality.
Doing so with 'relatie' is no problem. When I use getElementById it gives back a [objectHTMLSelectElement] and I can get the selectedIndex of that.
But when I am getting getElementById("nnummer") it gives me back a [obectHTMLDivElement].
Sure it was a <div> element before, but on screen it is really a <select> element now because I did selected a nnummer.
So, my question to you all is, how do I get the selectedIndex of 'nnummer'.
If you want it to see the code fail, see the problem for real, it is behind a password protected page.
I can give you permission if you need to see it to help me solve the problem.