Using jQuery right click to toggle background color.
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; }
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
HTML Code :
CSS Code :