12a1 1 0 0 1 . M9 1a8 8 0 1 0 0 16A8 8 0 0 0 9 1zm. 69a4 4 0 0 0-. 29 0 0 1 1.
34 0 0 0 . 8 0 0 0 2. 07A8 8 0 0 0 8. 8 0 0 1 0-3. 83a8 8 0 0 0 0 7. 3A8 8 0 0 0 1.
77 0 0 1 4. Use comments to ask for more information or suggest improvements. Avoid answering questions in comments. I can make new option selected by default? I was having problems with IE8, but your code worked for me, thank you! 1 — Worked for me without having to ‘jquerify’ the object.
Doesn’t look so simple to me! If adding more than one option element, I’d recommend performing the append once as opposed to performing an append on each element. To help performance you should try to only alter the DOM once, even more so if you are adding many options. This is a great solution. Query «promise» to determine when all options have been added and the DOM is done updating. With the other solutions that add options one by one, this cannot be done as easily.