I have 3 text fields, and in the keyup event for all 3, I want to call the same function?
In the code below, I am tring to associate a keyup event with a CalculateTotalOnKeyUpEvent function with a text field called compensation , but it does not work:
$("#compensation").bind("keyup", CalculateTotalOnKeyUpEvent(keyupEvent)); function CalculateTotalOnKeyUpEvent(keyupEvent) { var keyCode = keyupEvent.keyCode; if (KeyStrokeAllowdToCalculateRefund(keyCode)) { CalculateTotalRefund(); } };
javascript jquery events bind
Miral
source share