Created
November 5, 2009 23:16
-
-
Save lsmith/227500 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment