David, Seasoup, Ricardo, thank you all so very much for taking the time, lots to go on, many thanks again.
On Nov 27, 6:32 am, ricardobeat <[EMAIL PROTECTED]> wrote: > Use the attribute selector for this: > > $('something').click(function(){ > $('[id*=contact').hide(); // *= means 'contains' > > }); > > see "Attribute Filters" athttp://docs.jquery.com/Selectors > > But as seasoup said, there are better ways to structure your app. > > - ricardo > > On Nov 26, 2:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Hi folks, > > apologies if this is a completely noob question. I wish to close > > (hide) and number of <div>'s whilst leaving others open. I considered > > the possibility that it might be feasible in Jquery to act on div's > > with a certain pattern in the id name. Not sure if this is true tho; > > for example > > > <div id-="contact_blah"> > > <div id="contact_yak"> > > <div id="nothanks"> > > > so that the first two div's would be subject to being hidden, and the > > third left alone. > > > I wish essentially to have a series of links toggle the visibility of > > some div's, but when a link is clicked and a div is unhidden, - all > > other divs to hide. > > > Any ideas? > > > best wishes and thanks > > > Steve / Nibb