Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi 1- show div
2- there are some button in div
3- only hide div with close button
4- do not hide div with press(post back) other button
without jQuery
thanks
Posted
Updated 10-Jun-15 18:39pm
v2
Comments
ramyajaya 11-Jun-15 0:51am    
You can use JavaScript Dom object

Refer this for example.
http://www.w3schools.com/jsref/prop_style_visibility.asp
azeran 11-Jun-15 0:59am    
by above java code no=3,4 dont work
F-ES Sitecore 11-Jun-15 4:51am    
What have you tried so far? You've simply listed your requirements rather than asked a question so it looks like you just want someone to do your code for you. If you're looking to keep divs open\close between postbacks then your solution gets a little more complicated, but it's not 100% clear what it is you really need. Regardless, if you google "show hide div with javascript" you should find what you want, it's just a case of using getElementById and using the style property.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900