[jQuery] Re: Using close images

2007-05-30 Thread Karl Swedberg
Hi Jean, Try switching the = and the ^ around. So, the selector expression should look like this: $('[EMAIL PROTECTED]') That is, if you selecting all images that have a id that starts with fechar. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: Using close images

2007-05-30 Thread Karl Swedberg
Hi Jean, In this situation, .parents() -- with an s -- should do the trick. You should also put :first in there if you have nested divs. So, try replacing this ... $(this).parent(div) with this... $(this).parents(div:first) --Karl _ Karl Swedberg