Hey there, I've set up a drop-down menu using LI and UL tags.
For example:
<ul>
<li><a href="#">Parent 1</a>
<ul>
<li id = "Child 1"><a href="#">Child 1</a></li>
<li id = "Child 2"><a href="#">Child 2</a></li>
</ul>
</li>
<li><a href="#">Parent 2</a>
<ul>
<li id = "Child 3"><a href="#">Child 3</a></li>
<li id = "Child 4"><a href="#">Child 4</a></li>
</ul>
</li>
</ul>
I'm facing an issue where clicking on Child 1 should display Parent 1: Child 1 in the resulting div. How can I make this work?
Thanks for your help!