[jQuery] Simulate BackSpace key

[jQuery] Simulate BackSpace key


I read that I can simulate keypress with code:
$('#editor').trigger("keypress", [],null,{which:
8,pageX:e.pageX,pageY:e.pageY});
This code dont work.
Please help me solve this.