Im using
$(document).bind('click','.q',function(e){console.dir(e.target);});
my html is as so:
<div class="b"style="width:1000px;height:1000px">
<div class="q"style="width:10px;height:10px"></div>
<div class="q"style="width:10px;height:10px"></div>
more .q added later...
</div>
but when I click anywhere on .b (before a .q is appended) i get my console giving me the dir for e.target of .b
why?
I am using this code because live() is now removed.
So my code would have been
$('.q').live('click',function(e){console.dir(e.target);});