In Advanced Search, At the left bottom corner we have "Add Filter" drop down. I want to remove unused filter items from the drop down.
List of unused items - DATA CENTER COMPATIBILITY (DEMOCASEPRODDIR), VENDOR (DEMOCASEPRODDIR), TECHNOLOGY (DEMOCASEPRODDIR), WITH ANCESTOR.
I tried using the below code, it works perfect. But it is getting affected in other places/pages where the same Select2 drop down is being used. I want to remove it only from Advanced search page.
.select2-drop.select2-display-none.aui-select2-drop.aui-dropdown2.aui-style-default.select2-with-searchbox.aui-layer.select2-drop-active .select2-results li:nth-child(-n+5) {
display:none;
}
Any help is really appreciated..
Thanks in advance.