I'm getting a little confused trying to implement activeDropDownList with listData and listOptions. I first tried it with just listData and everything is fine. Here is the code:
listOptions generates the HTML code, rather than the data array needed by activeDropDownList. It is actually used internally by activeDropDownList to render an array as the HTML options.
OK, I got it. The documentation is not very clear. By reading it, I assumed I needed to use listOptions instead of listData and that's not the case at all.
Here is the code I used for anyone who may need it in the future.