Best way to track onchange as-you-type in input type=“text”?

后端 未结 16 1399
天命终不由人
天命终不由人 2020-11-22 08:42

In my experience, input type=\"text\" onchange event usually occurs only after you leave (blur) the control.

Is there a way to

16条回答
  •  庸人自扰
    2020-11-22 08:50

    2018 here, this is what I do:

    $(inputs).on('change keydown paste input propertychange click keyup blur',handler);
    

    If you can point out flaws in this approach, I would be grateful.

提交回复
热议问题