I had a image which calls add_cart() javascript function when onclick()
<img src="images/add.png" onclick="add_cart()">
I want the user to click the image only one time. When the user clicks it first time, add_cart
function should be called. If he clicks second time NO EVENT SHOULD HAPPEN
Plz help, any help will be appreciated