The 'charCode' property of a keyup event should not be used. The value is meaningless

后端 未结 6 1552
攒了一身酷
攒了一身酷 2021-01-13 07:42

HTML code:

Days

Jquery code:

$(\'#se         


        
6条回答
  •  醉话见心
    2021-01-13 08:09

    Are you waiting to bind the event until the Dom is ready?

    Something like this might help:

    $(document).ready(function(){
      $('#secrecy').keyup(function(){
        alert("ok");    
      });
    });
    

提交回复
热议问题