Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
YUI().use('node','collection', function(Y) {
buildSelectList_MR = function(selectBox) {
return Y.Array.reduce(
Y.NodeList.getDOMNodes(selectBox.get('options')),
"",
function(list, value) {
if (value.selected) {
if (list !== "") { list += ","; }
list += value.value;
}
return list;
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment