/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 function changeDiv(wdiv) { thediv = document.getElementById(wdiv); if(thediv.className == 'folderclosed'){ thediv.className = 'folderopen'; } else if (thediv.className == 'folderopen'){ thediv.className = 'folderclosed'; } }
Comments
                    Subscribe to comments
                
                