Função de clique em jQuery
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
Confused Cobra
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
$(document).on("click", ".onClass", function () {
//your code
var element = $(this); // to get clicked element
});
$( "#other" ).click(function() {
$( "#target" ).click();
});
$('#selector').on('click',function(){
//Your code here
});
$( "#dataTable tbody tr" ).on( "click", function() {
console.log( $( this ).text() );
});
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});