Hello, everyone
Let's say we have the following list:
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4 (different action)</a></li>
</ul>
Is it possible to assign a different click action on the last item of this list without any addition markup? I mean without having to add e.g a class="last" to the last item or something