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
$(document).on('click', '.addproduct', function () { // your function here });