SyntaxFix
Write A Post
Hire A Developer
Questions
No need to use .each. click already binds to all div occurrences.
.each
click
div
$('div').click(function(e) { .. });
See Demo
Note: use hard binding such as .click to make sure dynamically loaded elements don't get bound.
.click