Jquery-Different between event.target and this keyword?

Posted by Jerry on Stack Overflow See other posts from Stack Overflow or by Jerry
Published on 2010-04-16T15:22:24Z Indexed on 2010/04/16 15:33 UTC
Read the original article Hit count: 205

Filed under:
|
|
|

Hi all Got a quick and might be an newbie question. What is the different between event.target and this?

let's say I have

 $("test").click(function(e){

$thisEventOb=e.target;
$this=this;
alert($thisEventObj);
alert($this);
});

I know the alert will pop different value. Anyone could explain the difference? Thanks a million.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about dom