Monday 7 November 2011

Using jQuery with other javascript library

,
You can use jQuery with other javascript framework easily with this following step.

<script type="text/javascript" src="other_lib.js"></script>
<script type="text/javascript" src="jquery.js"></script>
 <script type="text/javascript">  
     var jq = jQuery.noConflict();  
     jq(document).ready(function () {  
       // so now you can use jquery jq variable instead of $ .  
        jq("div").hide();  
     });  
  // Code that uses other library's $ can follow here.  
 </script>

0 comments to “Using jQuery with other javascript library”

Post a Comment