Answer the question
In order to leave comments, you need to log in
What event in jquery is fired when a cached dropdown is selected in input type text?
Tried:
$('body').on('keyup keydown keypress change','input[type=text]', function()
{
...
});
Answer the question
In order to leave comments, you need to log in
Let's get a look. Change - called when yours has input[type=text]
lost focus and at the same time its value has changed. Not the best choice. You'd be better off with the modern input event . It fires every time, even if the focus hasn't changed. In addition, it also responds to pasting text from the buffer. Take a look at the demo here: jsfiddle.net/IonDen/v606ka0r
So the strategy is:
- Modern browsers and IE9+: input
- Need support for older browsers:input keyup change
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question