Show 1 div and hide all others on click using Javascript
I am setting up a "bio" section on my site and I have 3 images of employees and 3 divs with each of the employees bios below. I want to hide all the bios by default and then display only the div associated with the image that is clicked and hide all other divs. Currently it seems like it's not finding the elements because I am getting "undefined" Here is my HTML so far: <div onclick="showhide('bill');" class="bio_image"><div class="name">Bill Murray</div></div> <div onclick="showhide('bill2');" class="bio_image"><div class="name">Bill Murray</div></div> <div onclick="showhide('bill3');" class=