Quote:
Originally Posted by Old Pedant
Read Philip's code: You want a TOGGLE.
Here. The specific code for your actual situation:
Code:
<div onclick="toggle()"><strong>Buy</strong></div>
<div id="buyrevealed" style="display: none;">
... your form ...
</div>
...
function toggle( )
{
var div = document.getElementById("buyrevealed");
div.style.display = ( div.style.display == "block" ) ? "none" : "block";
}
...
}
|
Is there a way I can have multiple toggle's?