[jQuery] Find parent Form

2009-06-18 Thread Johannes Geppert
Hello, i need to find a parent form of an submit button with jquery. The method $('#submit').parent("form") only works when the submit is direct in the form element. But when I surround the submit element with an div it does not work. Sample: This work: This work not: How can

[jQuery] Find parent form

2009-06-18 Thread jogep
Hello, i need to find a parent form of an submit button with jquery. The method $('#submit').parent("form") only works when the submit is direct in the form element. But when I surround the submit element with an div it does not work. Sample: This work: This work not: How can I