Open API/Jquery
jquery on 이벤트 핸들러
jQuery on 이벤트 핸들러 사용방법 API Link : http://api.jquery.com/on/ 어쩌구 저쩌구 해서.. delegate , live , bind => on 사용하시면 됩니다. function myHandler(event) { alert(event.data.foo); } $(function() { $("p").on("click", {foo: "bar"}, myHandler) }); TEST $(function() { $("p").on("click", function(){ alert( $(this).text() ); }); }); TEST
2016. 10. 28.