Treehouse: Grow your CSS skills. Land your dream job.

mimic backspace jquery/javascript

  • # August 6, 2012 at 5:33 pm

    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

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.