posted 20 years ago
Hi all,
I have X number of fields on a form. Out of these 3 are the key fields. When the user changes the focus from one of the key fields to a non-key field (the other X-3 fields), I need to invoke a JavaScript method. If the user changes focus from one key-field to another key-field then the method doesn't need to be invoked.
To do this, I can check to see what the current and previous elements with the focus are and determine if I need to invoke the method. But this would mean that all the X fields on the form need to have an onfocus method to store the current and previous elements with focus.
Is there an easier way of doing this?
Thanks in advance!