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); } });
2.1m questions
2.1m answers
60 comments
57.0k users