Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript jQuery Basics (2014) Creating a Simple Drawing Application Perform: Part 2

.on('input') jquery event

can it replace the following event listeners: keydown/keyup/keypress/change?

I read this link: http://stackoverflow.com/questions/15727324/for-a-javascript-autocomplete-search-box-must-we-use-the-input-event-handler

and it seems like using 'input' as the event listener is like the ultimate event listener.

3 Answers

Be aware that the stack overflow post is referring to Vanilla JS and you are working with JQuery which is handling events in a different way.
Refere to the docs: https://api.jquery.com/on/

ok idk what vanilla JS is and i already looked at the docs and it DOES NOT contain ANY INFO on the 'input' event listener. so can you please explain what the 'input' event listener is listening to

useless person