I have product page with a dropdownlist of related products. When choose a product in the list I want change the product id attribute of the form so that when the customer clicks the "buy-button" it's the product choosed form the list that is added to the cart.
I'v tried to update this with jquery, but it's the original product that's added to the cart and not the product I have chosen from the list.
Here is my code:
$('[name=ProductID]').val(productid);
Best regards,
P