alexqdiag
10-24-2003, 09:13 PM
Hi there,
I am writing a generic function in .js for 3 text fields: month, day and year. Let's call them date fields. They all have different names. I have several of them on a form and 4 different forms. The function is checking if 2 digits are entered for month then the focus will go to day, if 2 digits for day are entered, the focus will go to year, so user do not have to click tab to input data. The problem is I call this function onKeyUp event for month and day textboxes. But what I passed as a parameter? Form, textbox name????
If someone has an idea, please help!!!:confused:
I am writing a generic function in .js for 3 text fields: month, day and year. Let's call them date fields. They all have different names. I have several of them on a form and 4 different forms. The function is checking if 2 digits are entered for month then the focus will go to day, if 2 digits for day are entered, the focus will go to year, so user do not have to click tab to input data. The problem is I call this function onKeyUp event for month and day textboxes. But what I passed as a parameter? Form, textbox name????
If someone has an idea, please help!!!:confused: