Where are you capturing the click event? You may want to do something like this:
$(function(){ $('<parent of div#1, div#2 & div#3>').click(function(event){ $('.hideme').hide(); $(this).find('a.showme').show() } } If you post your actual html and your click event code if you have one, then I may be able to help you further.. Thanks, Anoop On Wed, Aug 12, 2009 at 7:06 AM, Richard D. Worth <rdwo...@gmail.com> wrote: > > On Wed, Aug 12, 2009 at 5:40 AM, Bruce MacKay <b.mac...@massey.ac.nz>wrote: > >> >> Yes, you are right - what I described was like an accordion, but I left >> out the description of the actual links on which the div's are >> opened/closed. >> >> The links exist as 3 buttons in a horizontal list that remains stationery >> while the divs open/close beneath them. > > > Sounds like tabs: > > http://jqueryui.com/demos/tabs/ > > <http://jqueryui.com/demos/tabs/>- Richard >