That would be fine if that's what I was asking. But I wasn't asking for that. I can't change the id's because depending on whether or not they are loaded in the first parent, that will be independent of another function that loads the same children to another parent. Thats why when it's all said...
I have this code
<div id="parentA">
<div id="child1"></div>
<div id="child2"></div>
</div>
<div id="parentB">
<div id="child1"></div>
<div id="child2"></div>
</div>
I'd like to make a javascript that hides the child1 and child2 inside the "ParentB" parent div, but doesn't hide them...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.