Here's how i show a particular div var ourDiv = $(\'div-\'+randomID); ourDiv.show(); Code (markup): But how do i hide the other div's? $('') is prototype's equivalent for document.getelementbyid
I would first hide all the divs then do your code to make the one random div visible. Yeah, an array of div ids would work. Go through it and set them all hidden.
Hi, i already set the div's visible = hide on initialise. But as soon as one div is visible and i click another div, i don't now how to hide the first div again as i don't now which div-randomID was first clicked.