Bookmark Topic Watch Topic
  • New Topic

how do i populated value in combo from another combo

 
sarika Gupta
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
can someone help me.
I want to populate values in combo on the selection of value from another combo.
i have a combox(department)which have some values so when i select one value from this all related value populate in to another combobox(Employee).
how it can possible
please help me and give some example of code.
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Report post to moderator
You need to write a javascript function onchange event of first combobox. in that function assign the values you want to assign for second combo
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate of:
http://www.coderanch.com/t/287288/JSP/java/content-dropdown-will-depend-selected

Sarika,
Please don't ask the same question in multiple threads. It makes it difficult to follow the conversation if it's spread out in multiple places.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!