This seams to work in firefox and chrome, but not internet explorer. I need this to work in internet explorer.
IE is appending the opening tag and not the inner text and closing tag. Thanks in advance.
JS:
function go() {
$.post("ajax-select.html", "", function(resp){
$('#dropdown').append($('#newOptions option', resp));
}
}
HTML:
<body>
<select id="dropdown">
</select>
<input type="submit" value="go" onclick="go();" />
</body>
ajax-select.html:
<div>
<div id="newOptions">
<option value="opOne">one</option>
<option value="opTwo">two</option>
</div>
</div>