I'd like to change the items that appear in a listbox based on the selection of radio buttons. So, suppose I have a radio button labelled "Alphabet" and another radio button labelled "Numbers", then I'd like the list box to display either the alphabet or numbers depending on what radio button was pressed.
I'd like this to be done using javascript so as to avoid re-loading the page each time.
I guess I need a function (or two?) that is triggered from each of the radio buttons "on change" event. What properties/methods should I use of the listbox to get it to clear it's contents and then load new ones?
Any help much appreciated.
Alex
I'd like this to be done using javascript so as to avoid re-loading the page each time.
I guess I need a function (or two?) that is triggered from each of the radio buttons "on change" event. What properties/methods should I use of the listbox to get it to clear it's contents and then load new ones?
Any help much appreciated.
Alex