I'm using a live search plugin and I want for example after I've searched for something to clear that input field but not like this $('#id_of_your_textarea').val(''); because it doesn't work in my plugin. Actually I need to mimic the backspace key to clear that input field. Take a look at this fiddle and you will understand better: JSFIDDLE
Actually I need to mimic the backspace key to clear that input field.
Take a look at this fiddle and you will understand better: JSFIDDLE