I am working on dynamically creating some JavaScript that will be inserted into a web page as it's being constructed.
The JavaScript will be used to populate a listbox
based on the selection in another listbox
. When the selection of one listbox
is changed it will call a method name based on the selected value of the listbox
.
For example:
Listbox1
contains:
If Colours
is selected then it will call a populate_Colours
method that populates another listbox
.
To clarify my question: How do I make that populate_Colours
call in JavaScript?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…