Delete by word not by character using Computers Keyboard
20:37 03 Feb 2016

I have a textarea in my site. I have a word:

(e.g.)
    sampleword

I want to delete the word by words and not by character.

Output:
    ''
Incorrect Output:
    ampleword

UPDATE 1:

Below is the image of my textarea:

enter image description here

I want to delete the whole word using the Delete button in the keyboard.

Incorrect Output:

enter image description here

Correct Output:

enter image description here

How will I do that? What technology shall I use?

javascript html jquery css