Q:

Using jQuery right click to toggle background color

0

Using jQuery right click to toggle background color.

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>Using jQuery right click to toggle background color.</title>
</head>
<body>
<div></div>
<p>Right click the block</p>
</body>
</html>

CSS Code :

div {
background: red;
color: white;
height: 150px;
width: 150px;
}
div.contextmenu {
background: green;
color: black;
}

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