jQuery: textbox keyup firing twice

前端 未结 8 1865
南笙
南笙 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 16:47

    could it be possible that your html-element is contained twice within txt?

    it would be helpful if you would provide the html and the assigning javascript-code.

提交回复
热议问题