jQuery버전 차이 질문
본문
<div><div>jQuery(document).ready(function($){</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>$(li).mouseover(function(){</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>$(this).slideDown(500);</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>}).mouseleave(function(){</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>$(this).slideUp(500);</div>
<div><span class="Apple-tab-span" style="white-space: pre"> </span>});</div>
<div>});</div></div>
<div>
</div>
<div>요놈이 문제 입니다.. jQuery1.4.x 이하는 잘 작동하는데 jQuery1.5.x 이상은 이상하네요.. <span style="font-size: 10pt; line-height: 1.5">mouseleave가 안먹히네요..</span></div>
<div>해결 방법이 궁금합니다.. 1.11.x 만 쓰고싶은데 얘때메... 1.10.x 랑 1.4.x랑.. 같이 쓰는중...<span style="font-size: 10pt; line-height: 1.5"></span></div>
답변 2
$(li).mouseover(
function
(){
로 작성하신게 맞으신가요?
$("li").mouseover(
function
(){
로 하시면 될 듯 하십니다 :-)
참고로 1.4.X 버전과 1.11.X 버전은 정말 많이 바뀌었습니다 :-)
답변을 작성하시기 전에 로그인 해주세요.