Assuming you really want the $ as part of the variable name, this should be:

        var $aCSS = $A(document.getElementsByTagName('style'));


> -----Original Message-----
> From: prototype-scriptaculous@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of laurin1
> Sent: Monday, December 01, 2008 16:15
> To: Prototype & script.aculo.us
> Subject: [Proto-Scripty] Each Not Working with getElementsByTagName
> 
> 
> var $aCSS = document.getElementsByTagName('style');
> 
> $aCSS.each(function($sEle){
> 
>       alert('test');
> 
> });
> 
> I can make this work with $$, and if I use
> document.getElementsByTagName('style')[0], I can access each one
> individually. So why can't I use each()?
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@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-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to