SyntaxFix
Write A Post
Hire A Developer
Questions
Try:
$(document).ready(function() { $("a").click(function(event) { alert(event.target.id+" and "+$(event.target).attr('class')); }); });