Conflict between pages solved with jquery noconflict - Javascript jQuery

Javascript examples for jQuery:Plugin

Description

Conflict between pages solved with jquery noconflict

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.0.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){//  ww w.  ja v a  2 s  .  c om
$.noConflict();
jQuery( document ).ready(function( blah ) {
    console.log(blah("#alert").text());
});
    });

      </script> 
 </head> 
 <body> 
  <div id="alert">
    Hello World 
  </div>  
 </body>
</html>

Related Tutorials