127
rated 0 times
[
133]
[
6]
/ answers: 1 / hits: 17347
/ 15 Years ago, thu, july 16, 2009, 12:00:00
I have 3 textboxes, and on the keyup
event for all 3, I want to call the same function?
In the below code, I am tring to bind keyup
event to CalculateTotalOnKeyUpEvent
function to a textbox named compensation
, but it doesn't work:
$(#compensation).bind(keyup, CalculateTotalOnKeyUpEvent(keyupEvent));
function CalculateTotalOnKeyUpEvent(keyupEvent) {
var keyCode = keyupEvent.keyCode;
if (KeyStrokeAllowdToCalculateRefund(keyCode)) {
CalculateTotalRefund();
}
};
More From » jquery