Q:

Test if jQuery is loaded

0

Test if jQuery is loaded.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
  <meta charset="utf-8">
  <title>Test if jQuery is loaded</title>
</head>
<body>
<p>Click me!</p>
</body>
</html>
JavaScript Code :
$("p").bind("click", function(){
   $( "This is a click Event").appendTo( "body" );
});

$("p").bind("dblclick", function(){
   $( "This is a double-click Event"  ).appendTo( "body" );
});
 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now