$('div[id^=test]').hide();
:) if it doesnt work i think its just a case of syntax.... $("[EMAIL PROTECTED]").hide(); On Sep 17, 9:14 pm, ripple <[EMAIL PROTECTED]> wrote: > Try this. > > $("div[id*=test]").hide(); > > The second attempt evaulates the text in the div. Not the id of the div. > > > --- On Wed, 9/17/08, MACE <[EMAIL PROTECTED]> wrote: > > From: MACE <[EMAIL PROTECTED]> > Subject: [jQuery] Finding DIVS with similar IDs > To: "jQuery (English)" <jquery-en@googlegroups.com> > Date: Wednesday, September 17, 2008, 7:40 PM > > I have multiple DIVs with similar IDs: > > <div id="test1">Test 1</div> > <div id="test2">Test 2</div> > <div id="test5">Test 15</div> > <div id="test11">Test 11</div> > > What is the syntax to hide all the DIVs that start with 'test'? > > This doesn't work: > > $("id*=test").hide(); > > also tried: > > $("id:contains('test')").hide();