// Binding a named function function sayHello( event ) { alert( "Hello." ); } $( "#helloBtn" ).on( "click", sayHello );