Dynamically changing content of richselect element

Hi all,

I was wondering if there was a way to dynamically change the content of a richselect object? (ie completely change what the dropdown box is populated with)



OK dont worry about it! Figured it out.
What I did was to get the popup list by calling $$(“richselectID_list”)
I can then do a parse() on this to change its contents!

Not sure if its the way its supposed to be done, but it works!

Oh, forgot to mention you have to have to call clearAll() on the list first, because parse() appends to the end of the list.