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