I have multiple classes on a page of the same name. I then have a .click() event in my JS. What I want to happen is the click event only happen once, regardless of multiple
I think you add click event five times. Try to count how many times you do this.
console.log('add click event') $(".addproduct").click(function(){ });