Breadcrust
Programmer
Hi all,
I'm not much of a Javascript programmer, but I need to do a little for page I'm working on. Anyway, I need help with this problem.
I need to create an array of all the <div> elements that have a parent element with the class of "mr".
In other words, what I want to do is kind of like
var divs = document.getElementsByTagName('div');
except i just want to filter by the parent's class.
any help with this would be great ^^
--
breadcrust
I'm not much of a Javascript programmer, but I need to do a little for page I'm working on. Anyway, I need help with this problem.
I need to create an array of all the <div> elements that have a parent element with the class of "mr".
In other words, what I want to do is kind of like
var divs = document.getElementsByTagName('div');
except i just want to filter by the parent's class.
any help with this would be great ^^
--
breadcrust