I have an unordered list with dynamic contents that can be shown/hidden, with all the li having border-bottom except the last child.
However, with jquery's .hide() applied to the last child, the element is just given display:none, therefore making the visually last element still showing its border-bottom.
What's the best way to solve this, that is also reusable across other similar ul within the project?