Hello.
There is a button in the page when i click it, a div will appear or disappear by toggling to the left and right.
I want when the page loaded, user can only see the button and have to click to appear the dive.
But the problem is that when the page loads, the dive is appeared on the page and user doesn't have to click the button to see the content of the hidden div.
What can i do for that?
I want the div to stay hidden till user click the button to make it appear, not be appeared by default!
Niloofar24
15
Posting Whiz
Recommended Answers
Jump to PostUse CSS or JS first (on page load) to hide it, but which method or properties depends on how you want to show it on click.
What do you have so far?
Jump to Postuse css
display: none;
will hide elements
All 9 Replies
gentlemedia
803
Master Poster
Niloofar24
15
Posting Whiz
jstfsklh211
79
Light Poster
Niloofar24
15
Posting Whiz
Niloofar24
15
Posting Whiz
Niloofar24
15
Posting Whiz
jstfsklh211
79
Light Poster
diafol
lps
71
Posting Pro in Training
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.