select among a list of dom elements with the same attribute