Answers for "on click event jqeury"

10

on click jquery

$( "#dataTable tbody tr" ).on( "click", function() {
  console.log( $( this ).text() );
});
Posted by: Guest on May-24-2020
0

.on click jquery

var myEl = document.getElementById('myelement');

myEl.addEventListener('click', function() {
    alert('Hello world');
}, false);

myEl.addEventListener('click', function() {
    alert('Hello world again!!!');
}, false);
Posted by: Guest on February-23-2022
-2

.on click jquery

1
2
3
$( "#dataTable tbody" ).on( "click", "tr", function() {
  console.log( $( this ).text() );
});
Posted by: Guest on December-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language