The question is simply between
$(\"body\").click(function(e){});
vs $(document).click(function(e){});
which is more efficient or advisa
I'd treat this similarly to anything else in the DOM.
If I bind to a So if you want to ensure that you're binding the click event to the highest element then bind to the document. then it's at a higher level than the
inside it. If I bind to the then it's lower than the . This works the same way for the document(higher) and the
(lower) simply a level issue in my opinion.