event.target event.target์ ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ ์์๋ฅผ ๋ฐํํด์ค๋ค. ์๋ฅผ ๋ค์ด $("a").click(function(event){ console.log(event.target); }); ์ด๋ผ๋ ์ฝ๋๋ a์์๋ฅผ ํด๋ฆญํ์ ๋ ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ๊ณ , ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ ๋๋ง๋ค ์ด๋ฒคํธ์ ๋์์ธ a์์๋ฅผ ์ฝ์์ฐฝ์ ์ถ๋ ฅํ๋ค. ์ด๋ฐ event.target์ ์ด์ฉํ๋ฉด ํ์ฌ ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ ์์์ ์์ฑ๋ค์ ์ป์ ์ ์๋ค. ๋ง์ฝ ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ ๋์์ id๋ฅผ ์ฝ์์ฐฝ์ ์ถ๋ ฅํ๋ ค๋ฉด ๋ค์๊ณผ ๊ฐ์ด ์ฝ๋๋ฅผ ์์ฑํ๋ฉด ๋๋ค. $("a").click(function(event){ console.log(event.target.id); }); event.target๋ง๊ณ ๋ this๋ผ๋ ๊ฐ์ฒด๋ฅผ ์ด์ฉํด ํ์ฌ ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ ๋์์ ๊ฐ..