
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!
Julian Pustkuchen, M. Sc. Wirtschaftsinformatik ist passionierter Software- & Webentwickler mit den Schwerpunkten Softwaredesign, Objektorientierung sowie Usability- & Ablaufoptimierung bei webks. Ein weiterer Schwerpunkt ist die Entwicklung im CMS Drupal.
Entwickelt Julian gerade keine Software, fährt er Ski, Mountainbike, spielt Badminton, segelt oder verbringt Zeit mit Freunden.
Dieser Blog dient als sein "öffentlicher Notizblo(ck/g)".
Webbasierte Lösungen? Machen wir!
webks: websolutions kept simple
http://www.webks.de
Dir hat dieser Beitrag viel Zeit und Nerven gespart?
Dann freue ich mich über jede kleine Anerkennung:
Oder du suchst weitere professionelle Unterstützung?
Dann bietet dir unser webks.de Softwareentwickler-Team professionelle Dienstleistungen im Web-Development und der Drupal CMS Entwicklung!
Comments
Post new comment