I have a dynamic ul.column number, and some of them have a disabled class. For example:
<ul class="column"></ul> <ul class="column"></ul> <ul class="column disabled"></ul>
I don't know how much I have, but I want to apply border-right to the last .column , which does not also have a .disabled class.
I tried something like:
ul:not(.disabled):last-child {border-right:1px solid black}
and
ul:last-child:not(.disabled) {border-right:1px solid black}
but the style is always applied to the last element, regardless of the selector :not(.disabled) . Is there any other way to stylize the latter. column , which also does not have a .disabled class?
I use jQuery perfectly, but I donβt know how to achieve what I want.
javascript jquery html css css-selectors
valerio0999
source share