Really simple question but I can’t find an answer. I know how to do this in regular javascript and I know how to do this in jquery. Right now if I have this:
var states = [{"name":"alaska","id":1},{"name":"alabama","id":2];
Is there an YUI based method to push that into a select box, to set the selected item, to get the selected item back? If so, where’s the online example? If not I’ll just use javascript.
Yes, there is. You can do something like this:
.. and then use this in a YUI menu button configuration:
More details on the YUI button example page.
Hope that helps.