I'm trying to create a pseudo e-commerce website for my end-semester project and I've been wondering the logic behind it.
I want a button to get the value of an element(price of an item), which is in the parent div and I want it to get it from only it's own parent div, not others.
I don't need the entire code, just how do I go about it?
Do I use (this).parent('#product.price').value
(probably not correct syntax but you get the idea) ?
Thank you.