Posted By

raakex on 01/11/07


Tagged

div


Versions (?)

Who likes this?

14 people have marked this snippet as a favorite

basicmagic
DrStrangelove
chrisaiv
jacksont123
fayans
tmarkiewicz
vali29
hans
jero
masondixon
seanpowell
aegony
ringo380
Beppoi


Sbow Hide DIV


 / Published in: JavaScript
 

Show Hide DIV

  1. <script type="text/javascript" language="JavaScript">
  2. function showdiv(divname)
  3. {
  4. document.getElementById(divname).style.display = "block";
  5. }
  6.  
  7. function hidediv(divname)
  8. {
  9. document.getElementById(divname).style.display = "none";
  10. }
  11. </script>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: nerdsane on February 3, 2009

can u provide the html and the css code for this too.

You need to login to post a comment.