hils
11-12-2003, 09:24 AM
I would be very grateful for some help with this client-side javascript that I have adapted for use in a dog breed list.
What happens at the moment:
viewer clicks on a letter and the list opens. If they click on another that opens too, and so on and so on.
What I would like to happen:
The viewer clicks on a letter and the list opens. The viewer clicks on another letter and that one opens and the other one closes. So that there is only one of the lists open at anyone time.
Is this possible please? Does it need another 'event' adding? I have just done lesson 1 of my 'Understanding JavaScript' class and nothing is making sense just yet!
with thanks - Hils
just a quick addition: the link below is the test page I am using with the code. I just thought that it might have been missed.
temporary web page at the 'lorem ipsum' stage (http://www.testkeevil.homestead.com/breedtest.html)
What happens at the moment:
viewer clicks on a letter and the list opens. If they click on another that opens too, and so on and so on.
What I would like to happen:
The viewer clicks on a letter and the list opens. The viewer clicks on another letter and that one opens and the other one closes. So that there is only one of the lists open at anyone time.
Is this possible please? Does it need another 'event' adding? I have just done lesson 1 of my 'Understanding JavaScript' class and nothing is making sense just yet!
with thanks - Hils
just a quick addition: the link below is the test page I am using with the code. I just thought that it might have been missed.
temporary web page at the 'lorem ipsum' stage (http://www.testkeevil.homestead.com/breedtest.html)