January 7, 2010

[SOLVED]Using jQuery with Other Libraries


<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>


via Using jQuery with Other Libraries - jQuery JavaScript Library.

No comments:

Post a Comment