In jQuery, how do you make it so when I click a div, I can press the delete key and make something happen?
For example, I click on a div, then after that I press the button delete and it alerts a message. If I dont click on the div and press delete, nothing happens. Thanks!!