onclick on a tag with class 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
});