I know you marked prototypejs , but I have never used it before, and it is easy enough with vanilla JS. Here, like a loop over the <option> and see if they are selected or not:
var select_element = document.getElementById("feed-items-list"); var options = select_element.options; var i = options.length; while (i--) { var current = options[i]; if (current.selected) {
DEMO: http://jsfiddle.net/tFhBb/
If you want to physically remove this option from the page, use:
current.parentNode.removeChild(current);
If you want to deselect, use:
current.selected = false;
source share