JavaScript + Adding items into dropdown
- by Panther24
I have two dropdowns in my JSP page
1. lstA
test1
test2
test3
test4
2. lstB
Now on selection of lstA, I want to populate all the items of lstA into lstB except the select one, also the content of lstA should remain the same.
How can I achieve this?
I tried to do it, but from lstA some random items get removed, which is quite wired.