Two objects

Two objects

Hello.
Here is my problem:

var a = $('<div>Something</div>').appendTo('body');
$(a).click(function(e) {if(e.target == a) do something;});

if(e.target == a) isn't working.
What's wrong with it?