Q:

Display a message to the dblclick event on all paragraphs on a page using jquery

0

Display a message to the dblclick event on all paragraphs on a page using jquery

All Answers

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

HTML Code :

<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-git.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Display a message to the dblclick event on all paragraphs on a page</title>
</head>
<body>
<p>jQuery Exercises</p>
<p>JavaScript Exercises</p>
</body>
</html>

JavaScript Code :

$( "p" ).dblclick(function() {
alert( "Hello World!" );
});

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