I'd use element#up('form'). It's more prototype that way ;-) And also
most likely more reliable. If you still have problems with that, check
that your HTML validates as maybe the dom is getting confused with
incorrect closing tags.

On Sep 19, 12:20 pm, Jan Hansen <[EMAIL PROTECTED]> wrote:
> When a user clicks on a submit button, I need to acces all other
> fields of the surrounding form. However, I cant see how to obtain the
> parent form element, which I would need to call .GetElements(...) and
> manipulate the input elements.
>
> I've tried
>
> $$('input[type=submit], input[type=button]').each(function(submitItem)
> {
>   submitItem.form.GetElements(...)
>
> }
>
> which works in FF, but not in IE. What am I doing wrong?
>
> Best regards,
>
> Jan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to