Reference this page: http://www.ivault.sg/nproduct.php?pid=116&cat=2
Selecting an option on the dropdown box by the side should change the href of 'Add to Cart'.
However this does not happen specifically on Chrome on Macs, but works on all other browsers, even on Chrome in Windows.
Instead of the "click" event, use "change", as in
$("#productOptions").change(function(){
var id=$(this).attr("value");
if (id != "") {
$("#productAddToCart").attr("href","addtocart.php?code="+id);
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With