I have the following markup:
1 2
JavaScript code:
The only drawback is that when the user clicks on the dropdown list, the currently selected item does not appear selected