$('button').on('click', function() { alert('button was clicked!'); });
function notify () { alert("clicked" ); } $("button").on("click", notify );
$('.elementClass').click(function() { // code });