Keyup only after last key with jquery

后端 未结 3 1704
忘掉有多难
忘掉有多难 2021-02-05 06:14

I\'m coding a simple script to extract database informations on input keyup event.

The problem i have is that the keyup event is always repeated everytime the user press

3条回答
  •  余生分开走
    2021-02-05 06:59

    I think if you do this with onchange event you don't need to put time interval checks. whenever you complete your input and change the focus. it triggers onchange event for you

    $("input").onchange(function()
    {
       //extract database info
    }
    

提交回复
热议问题