Esconder opções de um select que funciona em todos os browsers

jQuery.fn.toggleOption = function( show ) {
    jQuery( this ).toggle( show );
    if( show ) {
        if( jQuery( this ).parent( 'span.toggleOption' ).length )
            jQuery( this ).unwrap( );
    } else {
        if( jQuery( this ).parent( 'span.toggleOption' ).length == 0 )
            jQuery( this ).wrap( '<span class="toggleOption" style="display: none;" />' );
    }
};

Após implementada a função, se utiliza da seguinte forma:

$(selector).toggleOption(true); // mostrar option
$(selector).toggleOption(false); // esconder option