Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Simple Textbox assitance Reply To: Simple Textbox assitance

#176444
Paulie_D
Member

It’s certainly possible to detect a keyup with JQuery so you could fire a delayed function on everykeyup…stopping the function onkeydown.

http://api.jquery.com/keyup/
http://api.jquery.com/keydown/

Basically, just using these two you could certainly write a function to clear the textarea after a specified period.

Might be a bit memory intensive though.

It’s beyond my ‘cut and paste’ level with JQ although it might be interesting.

You would have to assume that, barring any other interaction (such as a click on a ‘keep’ button or something), ALL text would be deleted once the function runs it’s course.