How get all selected values (not empty) for all selects in document using Prototype dollar dollar function $$() ?
Thanks, Celso
I don't know what your definition of "empty" is.
This needs to be known because most browsers will look at the value attribute as well as the text content of the option.
Assuming that there is a value attribute that has been set to an empty string, or there's no value and no text content, then you could do this:
var result = $$('select').invoke('getValue').without('');
value? The option does or doesn't have text content? It would be helpful if you posted your HTML.