class jquery click code example
Example 1: on click jquery
$( "#dataTable tbody tr" ).on( "click", function() {
console.log( $( this ).text() );
});
Example 2: class onclick jqery
$(document).on('click','.addproduct', function(){
//your code here
});
Example 3: jquery onclick function
$( "#other" ).click(function() {
$( "#target" ).click();
});
Example 4: class onclick jqery
$(".addproduct").unbind().click(function(){
//do something
});