on click a button with a class in jquery code example
Example 1: class onclick jqery
$(document).on('click','.addproduct', function(){
//your code here
});
Example 2: class onclick jqery
$(".addproduct").unbind().click(function(){
//do something
});