Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 11:29 AM
Hi sach,
We created separate global function which can be used anywhere (UI Script). we had some extra things to take care as well.
Following is the workaround:
function removeOptions(selectbox,choiceValue)
{
var i;
for(i=selectbox.options.length-1;i>=0;i--)
{
if (selectbox.options[i].value == choiceValue) {
selectbox.remove(i);
break;
}
}
}
//using the function:
removeOptions(document.getElementById("mySelectObject"),choiceValue);
this works on all browsers
Hope it Helps !