DOM Query (select all elements in a list under a condition)