lsmith (owner)

Revisions

gist: 227500 Download_button fork
public
Public Clone URL: git://gist.github.com/227500.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
var options = '', i, len;
 
for (var i = 0, len = ddActionsMenuData.length; i < len; ++i) {
    options += '<option value="' + ddActionsMenuData[i].value + '">' +
                ddActionsMenuData[i].text + '</option>';
}
 
var div = document.createElement('div');
div.innerHTML = '<select name="foo">' + options + '</select>';
 
var sel = div.firstChild;