jquery click function on class code example
Example 1: on click jquery
$( "#dataTable tbody tr" ).on( "click", function() {
console.log( $( this ).text() );
});
Example 2: jquery onclick function
$( "#other" ).click(function() {
$( "#target" ).click();
});
Example 3: jquery bind click
$( "#foo" ).bind( "click", function() {
alert( "User clicked on 'foo.'" );
});
Example 4: jquery $(document.on click
$(document).on("click","#test-element",function() {});