jQuery: textbox keyup firing twice

前端 未结 8 1914
南笙
南笙 2021-01-11 16:09

I\'m having a textbox and assigned the following function (it\'s the only function assigned):

txt.bind(\"keyup\",function(event){
    if(event.keyCode==13)
          


        
8条回答
  •  轮回少年
    2021-01-11 17:00

    I had a similar problem
    found that object with assigned keyup function was inside another object
    first was div second was input
    found that keyup was assigned to input and to a div with this input

提交回复
热议问题