There was an image that triggered the add_cart()
JavaScript function when clicked using onclick()
<img src="images/add.png" onclick="add_cart()">
The goal is to limit the user to clicking the image only once. Upon the first click, the add_cart
function should be executed. Any subsequent clicks should not trigger any event.