It's a bit confusing to explain so I'll give an example instead and try my best.
So let's say I have multiple blocks of DIV element with same class name (can't change class name for each DIV), but within each of those DIV, the content is different (specifically the a href value).
What I want to accomplish is that when I click on a button (there is a button below each of the DIV) the button gets the specific a href value of that DIV block only.
Image below might help better illustrate what I'm saying:P
(Ignore the add to cart button)
http://i46.tinypic.com/ojte8.png
Problem is when I click on the button on the right, it reports the link (href) of the DIV block on the left.
How do I make it so each time I click on a button of a specific DIV block, it gets the link within that DIV only?
Any help would be greatly appreciated. Thanks.