C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » HTML »

making div invisible on client side


Posted Date: 31 Oct 2008      Posted By: Sanjeev Kumar      Member Level: Gold     Points: 1   Responses: 1



Hi, I'm using div control on my .aspx file. I made it visible by javascript on pageload(.js file) and make it visible on conditional basis. my main problem is that it take physical space also for invisible divs. so I want to make it visible true or false on conditional basis only using javascript without taking its physical space. My javascript code it working well bt problem is paysical space of invisible div(s).
Here I'm using div without runat="server" so plz note its only client side. I'vent to use server side code.
Actually my work is to select a city from combo n to display corresponding address of city selected frm combo. all addresses r stored in div(s).
Thanks.





Responses

Author: Balaji KN    31 Oct 2008Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

document.getElementById(divId).style.display ="none"; to make it invisible


document.getElementById(divId).style.display ="block"
for visible



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : TD doesnt take the height of its chile contols inside the DIV
Previous : I have a problem in dreamweaver.
Return to Discussion Forum
Post New Message
Category: HTML

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use