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 trialsibal gesekki
3,484 Points.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
mkmk
15,897 PointsBe 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/
sibal gesekki
3,484 Pointsok 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
sibal gesekki
3,484 Pointsuseless person