my code works fine in Safari, and FF, but in IE the drop down is empty. Its just empty. Any ideas? This is jquery-1.5. Thanks!
var sel = document.createElement("select");
sel.setAttribute("id", key)
sel.setAttribute('name', key)
for (var option in ddHash[key]){
var optElement = document.createElement("option")
optElement.text = ddHash[key][option]
if (// some conditional){
optElement.selected = true
}
else {
optElement.selected = false
}
sel.appendChild(optElement)
}