Hello I have a select element and I am trying to set a default option for that select element. But my code isn't working in IE. Is there any way around for this??
if(objOption.value == selectedoption)
{ alert(objOption.value);
objOption.defaultSelected = true;
}
I am able to retreive the option, and its value, but am unable to set the defaultSelected value.