instance method Form#findFirstElement

View source on GitHub →

Form#findFirstElement() → Element

Finds the first non-hidden, non-disabled control within the form.

The returned object is either an INPUT, SELECT or TEXTAREA element. This method is used by the Form.focusFirstElement method.

Note

The result of this method is the element that comes first in the document order, not the tabindex order.

This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.