#1350 new

option elements not extended with any Form.Element.Methods

Reported by npup | June 7th, 2012 @ 12:35 AM

option elements are not extended with the Form.Element.Method methods. Two of them (enable and disable) would actually make sense so one could to stuff like

var varyingOptions = form.select("option.special")
  , specials = form.down("input[type=checkbox][name=activate-special]");

If it is considered worth it to mix in those two methods, the supplied patch could be used I guess. Or should enable/disable be put in a module of their own to avoid cherry picking from Form.Element.Methods?


Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket