jQuery get input value after keypress

后端 未结 9 1604
野趣味
野趣味 2020-11-28 21:40

I have the following function:

$(document).ready(function() {
    $(\"#dSuggest\").keypress(function() {
        var dInput = $(\'input:text[name=dSuggest]\'         


        
9条回答
  •  执笔经年
    2020-11-28 21:59

    I think what you need is the below prototype

    $(element).on('input',function(){code})
    

提交回复
热议问题