Originally posted by Vladas Razas:
Somehow it doesn't seem convenient to assign every element unique ID. And by tag name it returns multiple elements though i know there is only one.
That's just the way it is. If you can't uniquely identify the element you want, you'll have to resort to picking the first occurrence from a list of matching nodes -- even though you know there will be only one node in that list.