![]() Preserved Topic: how to set a state on several elements at the same time?  | 
  |
|---|---|
| Author | Thread | 
| 
       Paranoid (IV) Inmate From: Sthlm, Sweden  | 
    
       
  posted 05-24-2002 23:14
      
      Right now I'm working on a dhtml-presentaion-type-site for our team that got canned from work.  | 
  
| 
       Lunatic (VI) Mad Scientist From: Massachusetts, USA  | 
    
       
  posted 05-24-2002 23:47
      
      Give the elements IDs like  | 
  
| 
       Paranoid (IV) Inmate From: Sthlm, Sweden  | 
    
       
  posted 05-25-2002 00:45
      
      Perfect Slime, thanx! code: function hideAll(name){
  | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 05-25-2002 01:28
      
      MMh, I dont know myself, I would have done it the above way too , but does anyone know if theres an array of all the elements, like there is with images and forms .. you know the way you can use:  | 
  
| 
       Maniac (V) Mad Scientist From: Belgrade, Serbia  | 
    
       
  posted 05-25-2002 09:14
      
      Hew, document.getElementsByTagName("tagName") will return an array of all elements that match specified tag.  | 
  
| 
       Neurotic (0) Inmate Newly admitted  | 
    
       
  posted 05-25-2002 17:24
      
      
     | 
  
| 
       Lunatic (VI) Mad Scientist From: Massachusetts, USA  | 
    
       
  posted 05-25-2002 22:56
      
      I thought it was getElementsByTagName. I may very well be wrong.  | 
  
| 
       Maniac (V) Mad Scientist From: Belgrade, Serbia  | 
    
       
  posted 05-26-2002 09:20
      
      
     |