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
This should fix it and should be a good habit: .unbind()
$(".addproduct").unbind().click(function(){ //do something });