$('div').on('click', function(e){ console.log('Oops.') }) $('a').on('click', function(e){ e.preventDefault() })