SyntaxFix
Write A Post
Hire A Developer
Questions
Here is the another solution as well, the bind method.
$(document).bind('click', ".intro", function() { var liId = $(this).parent("li").attr("id"); alert(liId); });
Cheers :)