How to fire TextBox.TextChanged event on jquery onkeyup?

前端 未结 1 1824
耶瑟儿~
耶瑟儿~ 2021-01-11 18:48

I have asp.net TextBox with ontextchanged event this is search text box in my application.

I have search code in this event. how can I fire this event with the help

相关标签:
1条回答
  • 2021-01-11 19:38
    $('#textMessage').keyup(function(event) {
      if (event.keyCode == 13) {
        var message =  $('#textMessage').val();
        alert(message);
      } else {
        return true;
      }
    }); //endTextMessage keyup
    
    0 讨论(0)
提交回复
热议问题