Forum Discussion
Hi StephenB,
from a birds view your CSS definition looks correct. Maybe IE11 and FF have some troubles with the space in your title value.
We did something similiar in our community in the past. But we used the title attribute instead of the value attribute for our selection:
#lia-body .lia-content select.lia-search-form-granularity.search-granularity option[value="tkb|tkb"] { display: none; }
Regards,
Christian
- StephenB8 years agoExecutive
Thanks cike.
I tried your suggestion, however Firefox & IE still show the tkb option. I also tried setting the visibility property to hidden, but that didn't work either. After some more digging online, it would seem that I'm not the only one experiencing this.
- cike8 years agoChampion
Well, I also saw some other posts on this topic. It seems that IE doesn't support display settings on <option>-tags.
As an alternative, you can add small JavaScript/jQuery snippet which hides/removes the TKB option from the DOM:
$('#lia-body .lia-content select.lia-search-form-granularity.search-granularity option[value="tkb|tkb"]').hide();
You may take a look at the remove and/or detach methods of jQuery.
Related Content
- 9 years ago
- 6 years ago