I want to do something with li:last:
var p = $("li:last");
I need its position: position.left
With the position I can align some element. The problem is that in some cases the last li is ‘hidden’ by event.hide, so that means I get position.left 0 Which means the element does not align since the value is 0.
How do I get li:last of all the visible li? (So the li which is hidden should not play along)
Try
$("li:visible:last")-> used:visibleselector.