how to get click event in jquery code example
Example 1: on click jquery
$( "#dataTable tbody tr" ).on( "click", function() {
console.log( $( this ).text() );
});
Example 2: css click event jquery
$('h1').click(function () {
$(this).css('color', 'blue')
});
Example 3: jquery on click get element
$(document).on("click",".appDetails", function () {
var clickedBtnID = $(this).attr('id'); // or var clickedBtnID = this.id
alert('you clicked on button #' + clickedBtnID);
});