How to trigger an onkeyup event that's delayed until a user pauses their typing?

后端 未结 7 759
生来不讨喜
生来不讨喜 2020-11-29 03:16

I have a textarea where people enter some text (naturally), and I want to make it so that an AJAX request is made every now and then to get some suggestions regarding what t

7条回答
  •  佛祖请我去吃肉
    2020-11-29 04:13

    If you're interested in jQuery solutions, jQuery Suggest is a good implementation.

    No sense reinventing the wheel every time.

提交回复
热议问题