Hi,
I got a drop-down-menu with dynamically parameters. I have set a specific value in my JavaScript and I would like to change the shown value in the drop-down-menu to the value of my JavaScript when first open the html-file.
So I do not want to make a new entry in my drop-down-menu as all needed entries are already available due to the dynamic drop-down-menu.
What I wanna do is to compare my desired value in my JavaScript with the values of my drop-down-menu and if there is something identical then change the value of the drow-down-menu to that desired value.
What I don't understand to solve that problem is:
1. How can I read all the entries of a drop-down-menu and compare it with my value in JavaScript?
2. How can I select one specific entry when I open the html-file?
I got a drop-down-menu with dynamically parameters. I have set a specific value in my JavaScript and I would like to change the shown value in the drop-down-menu to the value of my JavaScript when first open the html-file.
So I do not want to make a new entry in my drop-down-menu as all needed entries are already available due to the dynamic drop-down-menu.
What I wanna do is to compare my desired value in my JavaScript with the values of my drop-down-menu and if there is something identical then change the value of the drow-down-menu to that desired value.
What I don't understand to solve that problem is:
1. How can I read all the entries of a drop-down-menu and compare it with my value in JavaScript?
2. How can I select one specific entry when I open the html-file?
Comment