Question: how to select dropdown value dynamically in javascript?
Answer: getElementById('salesperson'). selectedIndex=1; Setting it to 1 will make the second element of the dropdown selected. The select element index start from 0.