Dealing with different jquery (ui) versions

You need to use jQuery.noConflict().

ex:

<!– New jquery ui version –>
<link rel=”stylesheet” type=”text/css” href=”http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/redmond/jquery-ui.css”>

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

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

<!– 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 ...