ioustinos_sarris
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
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(
el.getElementsByClassName(
thanks
el.getElementsByClassName('.rooms').each(function(e){
//do something
});
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.