The selectivity of an ion-exchange membrane is due to Donnan equilibrium and not due to physically blocking or electrostatically excluding specific charged species.
The selectivity to the transport of ions of opposite charges is called its permselectivity.