jquery prototype 충돌 방지

Posted by Albert 4058Day 1Hour 7Min 56Sec ago [2014-03-11]

 <html>
<head>
<script src="prototype.js"></script>
<script src="jquery.js"></script>
<script>
var $j = jQuery.noConflict();

// Use jQuery via $j(...)
$j(document).ready(function(){
$j("div").hide();
});

// Use Prototype with $(...), etc.
$('someid').hide();
</script>
</head>
<body></body>
</html>

참고주소: http://taesuz-textcube.blogspot.kr/2009/11/jquery-%EC%99%80-%EB%8B%A4%EB%A5%B8-%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC-%EC%B6%A9%EB%8F%8C%EC%8B%9C.html



LIST

Copyright © 2014 visionboy.me All Right Reserved.