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
Sign In
Register
AdSense Revenue
Active Members
Today
Nikhil Gaur
(30)
krishnavenikal...
(12)
Randhir Yadav
(1)
Last 7 Days
Anil Kumar ...
(582)
Nikhil Gaur
(581)
Abhisek Panda
(445)
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 2008
Member Level:
Bronze
Rating:
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
How to capture the event rasied by winform UserControl in html page ?
What are HTML controls and Server controls
Help Me Regarding HTML Controls
How to call Html input controls in code behind file?
How to call Html input controls in code behind file?
dotNet Slackers
About Us
Contact Us
Privacy Policy
Terms Of Use