Hi,
I have a simple DOM code like the following
<div>
<div>
</div>
</div>
I want to set the background color of the outer div using the inner div alone. Is it possible? The question might be a bit crazy. But I have a strong reason behind asking that. I am working on a framework where there are html code generated dynamically and I hardly have control over it. But I can put inner elements. In the example above, the outer div would be from my generated code and I want to change the backgroud color, I cannot do it directly. So I want to do it via the child div.
Something like childDiv.parent.background-color = blue.
Is this feasible? Or a similar implementation would be of immense help!