I'm hoping to get some assistance.
I'm creating multiple search functions... lets call them as per below
Search: 1, 2, 3 and 4
All the searches are to appear in the same area just different design.
My objective is to ensure that only the search function clicked on will appear, and the rest will remain hidden. IE: If 1 is clicked... appear. If 2 is then clicked, 1 should disappear and 2 appear.
This is my html code
<div id="buyrevealed" style="display: none;">
more code for search funcion
function togglebuy( )
var div = document.getElementById("buyrevealed");
div.style.display = ( div.style.display == "block" ) ? "none" : "block";
Would love some assistance. Hope this makes sense.