0
Q:

jquery addeventlistener

$('#selector').on('click',function(){
    //Your code here
});                  
21
$( "#dataTable tbody tr" ).on( "click", function() {
  console.log( $( this ).text() );
});
4
$( "#foo" ).bind( "click", function() {
  alert( "User clicked on 'foo.'" );
});
1
$(document).on("click","#test-element",function() {});
1

New to Communities?

Join the community