How to add or remove an item from drop down combo box using javascript
843840Oct 21 2007 — edited Oct 21 2007How to add or remove an item from drop down combo box using javascript in a jsp.
i have two combo boxes,
combo box1 has numbers (one,two,three,four).
and combo box2 has (red,green,yellow).
now if i select "one" from combo box1, then only "red" and "yellow" should appear in combo box2,
but if i select "two" or "three" or "four".. all the three "red","green","yellow" should appear in combo box2..
the bottom line is i need to add and remove item dynamically using java script function in a jsp*.
can someone help me on this,
i googled a lot but couldn find a solution.