KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a div with id test and through the foreach loop I am creating some inner divs inside the test div. So it becomes like this. <div id="test"> <div id="test-1"></div> <div id="test-2"></div> <div id="test-3"></div> <div id="test-4"></div> </div> I am getting the parent div id "test" in the javascript function. Now I want to loop through the inner divs(child divs) of the test div and get the id of the each div one by one and style them through javascript. Any Idea about this?
Tags (comma-separated)
Save Edits
Cancel