Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9583 (new enhancement)

Opened 2 years ago

[PATCH] [TEST] Form.findNextElement / Form.focusNextElement

Reported by: Woil Assigned to: sam
Priority: normal Milestone: 2.x
Component: Prototype Version: edge
Severity: normal Keywords: form, element, find, focus
Cc:

Description

The addition of the findNextElement and focusNextElement functions allow for easily advancing of user focus during form input. Highly useful for telephone / credit card and other form fields with fixed length. Skips hidden / disabled fields and properly advances according to tabindex attribute if specified by the form elements.

Form.focusFirstElement and Form.findFirstElement now use the findNextElement with no initial element specified.

Attachments

findNextElement.diff (3.9 kB) - added by Woil on 09/18/07 07:28:15.
Patch and Test

Change History

09/18/07 07:28:15 changed by Woil

  • attachment findNextElement.diff added.

Patch and Test