aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes need enclosing form name of a element in jquery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "need enclosing form name of a element in jquery" Watch "need enclosing form name of a element in jquery" New topic
Author

need enclosing form name of a element in jquery

Maan Suraj
Ranch Hand

Joined: Dec 20, 2007
Posts: 299
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


Man Suraj
Someone says "Impossible is nothing". The man next him says "Let me see you licking your elbow tip!"
Jagdeep Sharma
Ranch Hand

Joined: May 24, 2010
Posts: 121

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

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Untested, but I believe this will get you what you want.



GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need enclosing form name of a element in jquery