jquery trying to delete the highlighted element using keypress event
<p>I am using the following code to highlighting the element :</p>

<pre><code>$(".ss").live({ 
    mouseenter: function () { HighLight(this) }, 
    mouseleave: function () { OffLight(this); }, 
      keypress: function () { KeyOperation(this); }
});

function HightLight(s)
{
  $(s).css({border : "1px solid red"});
}
function OffLight(s)
{
  $(s).css({border : "0"});
}
function KeyOperation(s)
{
  $(s).remove();
}
</code></pre>

<p><strong>KeyOperation()</strong> function is not executing on keypress.</p>

<p>Here i am trying to do that when user highlight any element, and while highlighting, if he press <code>Delete key</code> , than that element should be deleted.But this is not working, can anybody tell me how can i do this?</p>
