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 PointsWHAT DOES .on('input') jquery event LISTEN TO?
THE DOCS HAS NO INFORMATION ON THE 'input' EVENT LISTENER. WHAT DOES IT LISTEN TO PLS HELP
3 Answers
Maxwell Carlson
7,265 PointsHere's a stack-overflow that answers your question http://stackoverflow.com/questions/17384218/jquery-input-event
sibal gesekki
3,484 Pointsi read this as well: http://stackoverflow.com/questions/15727324/for-a-javascript-autocomplete-search-box-must-we-use-the-input-event-handler
however that one talks about javascript and not jquery
but essentially the 'input' listener replaces keydown/keyup/keypress/change? its like the ultimate input field listener?
Maxwell Carlson
7,265 PointsThat's the gist I got from reading it, does that not match your experience with it? Also the stackover-flow i linked is talking about the jQuery event input, which is what you're asking about right?
sibal gesekki
3,484 Pointsyea it does. i just wanted to make sure that it can be used in all cases dealing with some sort of change in an input tag whether it be a range/text/etc