click event 삭제1 javascript Node copy 후 click event 변경 혹은 event 없애기 function moveChoiceUser(obj){ var trObj = obj.cloneNode(true); var changePointDiv = $("choiceUserListTbody"); trObj.removeAttribute("onclick",moveChoiceUser,false); trObj.onclick = function(){deleteChoiceUser(this);}; alert(trObj.getAttribute("onclick")); changePointDiv.appendChild(trObj); } clonNode : 복사 할때 사용 하는 Method, true 일경우 하위 노드 모두 복사 false 일경우 하위 노드 복사 안함 * fireFox에서 event 삭제할경우.. $ ( ".. 2010. 11. 2. 이전 1 다음 728x90