How to pass parameter to the attachEvent javascript function
- by Lakshman
I have to pass paramter the validateNum javascript function (eg. num1, num2)
if (num1.attachEvent) {
num1.attachEvent("onkeypress", validateNum);
}
How to pass. can i get code sample?