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