There's already Element#select for that:

$( element ).select( "div" );

Note that if you absolutely want that shortcut, you can always
implement it locally like so:

Element.addMethods({
  $T: Element.select.methodize()
});

Best,

Tobie.


On May 10, 9:45 am, 七星海 <[EMAIL PROTECTED]> wrote:
> How about $( element ).$T( "div" );
> Add a new method to Element.Methods
>
> On May 10, 12:21 am, Tobie Langel <[EMAIL PROTECTED]> wrote:> How would tht 
> be shorter than: $$('div') ? ;)
>
> > Best,
>
> > Tobie
>
> > On May 9, 5:43 pm, disccomp <[EMAIL PROTECTED]> wrote:
>
> > > I think A shortcut for getElementsByTagname would help be really
> > > useful, so I thought I'd mention it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to