onclick in jquery using class 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
});