I understand that. However, what if I only want to extend a specific
type of INPUT tag (e.g. RADIO, CHECKBOX or TEXT) and not every type of
INPUT tag?
On Feb 7, 4:30 pm, kangax <[EMAIL PROTECTED]> wrote:
> Just specify the tagName:
>
> Element.addMethods('input', {
> isNumeric: function(element) {
> return /\s*\d+\s*/.test($F(element));
> }
>
> })
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---