多个事件触发相同的函数

Is there a way to have keyup, keypress, blur, and change events call the same function in one line or do I have to do them separately?

The problem I have is that I need to validate some data with a db lookup and would like to make sure validation is not missed in any case, whether it is typed or pasted into the box.

转载于:https://stackoverflow.com/questions/2534089/jquery-multiple-events-to-trigger-the-same-function

查看全部
csdnceshi60
℡Wang Yan
2010/03/28 18:53
  • jquery
  • javascript
  • events
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

0个回复