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">answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Niradhip ChakrabortyPosted May 19, 2009, 2:14 AM
Or
You can provide two link, Say link1 and link2. If link1 will click first will open and if link2 will click second will open. So you can call a javascript function and same way for link1 enable the first and hide the second and for link 2 do the opposite. I have already given you the code for how to hide and show the tag. Mwhat???????????????? 
maliPosted May 18, 2009, 11:02 AM
Niradhip ChakrabortyPosted May 18, 2009, 2:57 AM
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';