jQuery 에서 동적으로 생성된 element의 event 처리를 할땐 직접 스크립트를 콜 했어야 했는데 1.3 버전에서는 동적 element의 event 처리가 가능하군요...
예전에 얼핏 듣고 사용할 일이 없었는데 이번에 사용할 일이 있어 보니... 다행히도 사용할려는 event를 지워해주네요... ㅎ
링크 : http://docs.jquery.com/Events/live#typefn
예전에 얼핏 듣고 사용할 일이 없었는데 이번에 사용할 일이 있어 보니... 다행히도 사용할려는 event를 지워해주네요... ㅎ
added in jQuery 1.3: Binds a handler to an event (like click) for all current - and future - matched element. Can also bind custom events.
Possible event values:
Currently not supported:
click, dblclick, mousedown, mouseup, mousemove, mouseover, mouseout, keydown, keypress, keyup Currently not supported:
blur, focus, mouseenter, mouseleave, change, submit-------------------------------------------------------------------ex)
$("p").live("click", function(){
$(this).after("<p>Another paragraph!</p>");
});'먹고 살기' 카테고리의 다른 글
| jQuery 동적 element 의 event 처리 (0) | 2009/06/02 |
|---|---|
| PostgreSQL 설치 및 사용자 추가 (0) | 2009/04/30 |
| 오라클에서 MySql 의 Limit 구현 (0) | 2009/02/24 |
| @Autowired 스프링 어노테이션 (0) | 2009/02/17 |
| iBatis Batch (0) | 2009/02/06 |
| 스프링 MVC MultiActionController 사용하기 (1) | 2009/01/08 |
