Domanda di colloquio di Getty Images

How would you create an accordion-style nav menu using css and javascript without using jQuery.

Risposta di colloquio

Anonimo

11 mag 2012

I got the css portion of this question wrong. I said I would attach a function to the onclick event of the nav header, find the content element to hide by id and set the content element's visibility to hidden. It should have been set its display to none.