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)
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 217:46:47 |
Calls: | 6,621 |
Calls today: | 3 |
Files: | 12,171 |
Messages: | 5,317,713 |