[UPHPU] javascript form element... get form ID
Kirk Cerny
kirksemail at gmail.com
Mon Jul 14 18:36:25 MDT 2008
Usually inputElement.form.id will do it.
Kirk Cerny
On Mon, Jul 14, 2008 at 5:58 PM, Sheri Bigelow <sheri at designsimply.com> wrote:
> On Mon, Jul 14, 2008 at 5:22 PM, Wade Preston Shearer <lists at wadeshearer.com>
> 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
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>
More information about the UPHPU
mailing list