Andrew Poulos
unread,May 12, 2021, 10:24:37 PM5/12/21You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I have a number of BUTTON elements. One of the elements will always have
a '.last-btn' class (and it may well be the last element). How can I
select the "last" element but never the one with 'last-btn'?
For example, if the elements were in this order
b-1, b-2, b-3, b-last
or in this order
b-1, b-last, b-2, b-3
b-3 would be selected.
These fail :-(
div > button:last-child, button:not(.last-btn)
div > button:last-child, div > button:not(.last-btn)
Andrew Poulos