$(".cal_event").on("click", function(calEvent) { $(".table").on("click", function() { alert($(calEvent).text()); }); });