Link to this page: http://www.ivault.sg/nproduct.php?pid=116&cat=2
Selecting an option from the drop-down list on the side should change the href to Add to Cart.
However, this does not happen specifically for Chrome on Mac computers, but it works in all other browsers, even on Chrome on 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); } });
Source: https://habr.com/ru/post/1383422/More articles:Why is the wrong field value displayed in the error message when using jQuery (remote) validation? - jqueryC # -Pipeline Style Event Model - c #What part of the process virtual memory scheme does mmap () use? - linuxHTML object tag return method - objectLow FPS with android support SurfaceView - androidChoosing Selenium date web driver from jquery datepicker-Ui - jqueryWriting transparent text in jpeg - phpHow to maintain aggregation and composition in C #? - c #Is socket error handling different in python 2.5 than 2.7? - pythonHow and when to close the sqlite database in an application with a lot of actions and services - androidAll Articles