Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to add or remove an item from drop down combo box using javascript

843840Oct 21 2007 — edited Oct 21 2007
How 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 18 2007
Added on Oct 21 2007
1 comment
58 views