This question relates to another thread. I want to hide a div and keep a div hidden whether it's before or after the DOM loads. I can use hide() to hide the div, the div that is suppose to be hidden, will be hidden behind a div that is half it's size. As I mentioned, if I use hide() then the event is clicked, it won't appear as though it's coming from behind the div, I know this sounds confusing, maybe to some, I can only show the actual page in hope it is becomes clear ?
Siberian
13
Junior Poster
Recommended Answers
Jump to PostYeah, its a bit unclear. You say 'I want to hide a div and keep a div hidden whether it's before or after the DOM loads'. By that do you mean the div is never to be made visible to the user? You could just use CSS visibiliy: hidden for …
Jump to PostYou can set the z-index to "layer" divs on top of each other.
Jump to PostI updated the code !
Good for you. Seeing as 95%+ of us haven't seen it anyway, what difference could it possible make? You hide the code away in a link. You give us nothing to work with, not even a link to the page. In order to …
Jump to PostYou haven't closed the function
$(".solid a").click(function(event) { event.preventDefault(); $("#block").animate({top: '320px'}, { duration:'200px', easing: 'easeOutBounce' }); });
Add that last }); and the div bounces down. HOw does this relate to the hidden div though? I don't see that here.
Jump to PostSiberian, read the first line of my signature.
All 26 Replies
hericles
289
Master Poster
Featured Poster
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Siberian
13
Junior Poster
Siberian
13
Junior Poster
Siberian
13
Junior Poster
diafol
Siberian
13
Junior Poster
hericles
289
Master Poster
Featured Poster
Siberian
13
Junior Poster
diafol
Siberian
13
Junior Poster
hericles
289
Master Poster
Featured Poster
Siberian
13
Junior Poster
hericles
289
Master Poster
Featured Poster
gsudarsan
0
Newbie Poster
Taywin
312
Posting Virtuoso
Siberian
13
Junior Poster
hericles
289
Master Poster
Featured Poster
Taywin
312
Posting Virtuoso
Siberian
13
Junior Poster
hericles
289
Master Poster
Featured Poster
Siberian
13
Junior Poster
Airshow
416
WiFi Lounge Lizard
Team Colleague
diafol
commented:
Be careful, he's a little sensitive! heh
+15
Siberian
13
Junior Poster
Airshow
416
WiFi Lounge Lizard
Team Colleague
Siberian
13
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.