Linktipp: jQuery Plugin to recognize text changes in input fields / textareas delayed as alternative to .change() or oninput event.

Linktipp: jQuery Plugin to recognize text changes in input fields / textareas delayed as alternative to .change() or oninput event.

jQuery by default provides the onchange event: .change(). It is being triggered, if a value was changed. WAS is the right word, because for example in input fields, the event only triggers when the field loses focus.

That's enough for some cases but for many others you will like to have a different behaviour: You want to be notified, when the text in the input field or textarea was changed. Furthermore in most cases you only want this event to trigger after a specified delay, so that the event triggers, when the user stopped typing.

It's not quite that easy to find a code snipped or plugin which solved this problem well and X-browser compliant. But finally I was successful and found the jQuery typing plugin, which is my link tip of today.

Have a look and try out the demo on the project pages. The plugin is great! Feel free to leave a comment, if you liked it!

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.

Weitere Informationen über Formatierungsoptionen