Maan Suraj wrote:Hi
suppose i have below code
when the focus is on any of the elements within the form(say on "test1" or "test2").When i hit the enter button through keyboard, I want a jquery function to be called, which checks what the enclosing form name is based on the focus
You can do something like this