oninput in IE9 doesn't fire when we hit BACKSPACE / DEL / do CUT

后端 未结 4 1605
借酒劲吻你
借酒劲吻你 2021-01-04 02:32

What\'s the cleanest solution we use to overcome the problem that IE9 doesn\'t fire the input event when we hit BACKSPACE / DEL / do CUT?

By cleanest I mean code

4条回答
  •  情书的邮戳
    2021-01-04 02:58

    you could try html5Forms (formerly html5widgets)

    Since I hate COBOL, I decided to update my html5Widgets library to:

    1. Add support for oninput for browsers that don’t support it (e.g. IE7 and 8)
    2. Force IE9 to fire a form’s oninput when the backspace and delete keys are pressed inside any of the input nodes.
    3. Force IE9 to fire a form’s oninput when the cut event is fired on any of the input nodes.

    here is a link to the commit that adds this support

提交回复
热议问题