Link to home
Start Free TrialLog in
Avatar of ioustinos_sarris
ioustinos_sarrisFlag for Greece

asked on

getElementsByClassName on prototype

Hi there,
Completely stuck with a trivial issue i suppose.
I use the prototype library
I have an element and want to get all its child elements with class 'rooms' and do something with each.
What i do is the following code and i get an error el.getElementsByClassName(".rooms").each is not a function
el.getElementsByClassName(".rooms") return an HTMLcollection...How on earth can i manipulate the elements of this collection?

thanks

el.getElementsByClassName('.rooms').each(function(e){
				//do something
			});

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of cyberstalker
cyberstalker

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial