Hi I have a simple question (not for me)
how can I confirm only one div open. I want when users click to open the secent div, the first div will be closed.
my code:
<
style type="text/css">
--
.demo
{color:#000033; background-color:#cccccc; layer-background-color:#cccccc;
position:absolute; top:300px; left:300px; width:480px; height:280px;
z-index:99; visibility:hidden;}
-->
style>
<
script type="text/javascript">
May 17, 2009, 10:57 PM EDT
Its better you put the div inside a |
Now give some id to tr. by default make visibility true for one
. Now call a JavaScript function on click on visible
. and make the visibility false for it and enable the visibility for the second tr. Same way you can do for the other tr. here is the code for visibility true and false.
document.getElementById("trExistingVendor").style.display = '';
document.getElementById("trExistingVendorlogin").style.display = 'none';