Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic combo fill

Status
Not open for further replies.

biddingbong

IS-IT--Management
Sep 10, 2004
67
MU
Hi, still some problems with combo box.
I have 2 combo's:
#1 Persons from
options: Customers
: Staff
: Other
#2 Search by

If "customers" is selected in the first combo, then the 2nd combo(search by) will have the following in its list:
-ID
-Name
-Surname
and other options

If "staff" is selected then the list will change to:
-option 1
-option 2
-option3
and other options

Im not tha friendly with JavaScript, some help will be much appreciated.

Thanks.
 
lots of examples here and on the web already.

from the faqs, these might help:

Creating new select list options dynamically faq216-4766
how to dynamically modify the list in a listbox ? faq216-335




=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top