Kizspy | Question: 19 (Choose 1 answer)
function change(obj){var list-obj.getElementsByTagName("ul");If(list[0].style.display=="block")list[0].style.display="none";list[0].style.display="block";else
}
<li>link 1</li>
<ul><li onclick="change(this)">link 2 <ul><li>link 21</li><li>link 22</li></ul></li>
</ul>What is the output of above function?
A. To show/hide the child list
B. To show/hide all lists
C. To show/hide the item(link2)
D. None of the others
FUOV