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:
Colours
Shapes
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?