click on an element then loads a list

Discussion in 'JavaScript' started by deepman007, Apr 14, 2008.

  1. #1
    Hi

    is it possible to load the list of images under the set 1 when a user clicks on set 1 and loads the list of images when clicks on set 2? how do you write onclick() ?

    
    
    ul>
        <li><a href="#">set 1</a>
           <ul>
               <li><img src="1.jpg"></li> 
               <li><img src="2.jpg"></li>
           </ul>
        </li>   
       <li><a href="#">set 2</a>
           <ul>
               <li><img src="1.jpg"></li> 
               <li><img src="2.jpg"></li>
           </ul>
        </li> 
    </ul>
    
    Code (markup):
     
    deepman007, Apr 14, 2008 IP
  2. Farhan5

    Farhan5 Peon

    Messages:
    189
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    u have to explain it completely
     
    Farhan5, Apr 14, 2008 IP
  3. deepman007

    deepman007 Peon

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    deepman007, Apr 15, 2008 IP