Dealing with different jquery (ui) versions

You need to use jQuery.noConflict().


<!– New jquery ui version –>
<link rel=”stylesheet” type=”text/css” href=””>

<!– jquery ui function for the new version, changing the ‘$’ to ‘$jq’ –>
<script type=”text/javascript”>
$jq(function() {
// do something

<script type=’text/javascript’>
var $jq = jQuery.noConflict();

<!– Older jquery ui version –>
<script type=”text/javascript” src=”js/jquery-1.4.1.min.js”></script>

Leave a Reply

Your email address will not be published. Required fields are marked *

Loading Facebook Comments ...
Loading Disqus Comments ...