Or simply $('.open').removeClass('open'), iteration is built-in :)
On Jun 16, 3:02 pm, brian <bally.z...@gmail.com> wrote: > $('.open').each(function() > { > $(this).removeClass('open'); > > }); > > On Tue, Jun 16, 2009 at 1:17 PM, Dave Maharaj :: > > WidePixels.com<d...@widepixels.com> wrote: > > I have 5 divs which can load content into them. I have added an on click add > > class open. When the page loads initially none are open, click on one link > > and the open class gets added but if another link is clicked i need to > > closed the open tag. > > > How can tell jquery to look for an open tag if it finds on close it? (An > > accordion style layout is not what I am looking for) > > > Dave