Answers for ".on() in jquery"

22

jquery click event

$('#selector').on('click',function(){
    //Your code here
});
Posted by: Guest on April-08-2020
6

/on in jquery

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

on() jquery

$('button').on('click', function() {
  alert('button was clicked!');
});
Posted by: Guest on June-16-2021
1

on() jquery

function notify () {
  alert("clicked" );
}
$("button").on("click", notify );
Posted by: Guest on June-16-2021

Browse Popular Code Answers by Language