Usually inputElement.form.id will do it. Kirk Cerny
On Mon, Jul 14, 2008 at 5:58 PM, Sheri Bigelow <[EMAIL PROTECTED]> wrote: > On Mon, Jul 14, 2008 at 5:22 PM, Wade Preston Shearer <[EMAIL PROTECTED]> > wrote: > >> Is there an easier way to get the ID of a form that an element is within >> than walking back up the DOM tree? > > > Assuming the element is a direct descendent, you could use parentNode. > See > http://www.java2s.com/Code/JavaScriptReference/Javascript-Properties/parentNodeExample.htm > > _______________________________________________ > > UPHPU mailing list > [email protected] > http://uphpu.org/mailman/listinfo/uphpu > IRC: #uphpu on irc.freenode.net > _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
