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
;});
e.target
== a
isn't working.
What is wrong with it?
Topic Participants
krzysio1993
andreas.goebel