[jQuery] Re: Select attribute by checking more than one value

2008-05-24 Thread Wizzud
hmph ... sorry about the typos! Must get into the habit of actually wearing my glasses! On May 24, 4:46 pm, leggo-my-eggo <[EMAIL PROTECTED]> wrote: > Wizzud, > > So helpful, thank you! > > Just to have the record here complete, there were two small syntax > things in that that I had to change, a

[jQuery] Re: Select attribute by checking more than one value

2008-05-24 Thread leggo-my-eggo
Wizzud, So helpful, thank you! Just to have the record here complete, there were two small syntax things in that that I had to change, and the working version is: jQuery('.entry a:not(.download):has( img )') .filter(function(){ return /\.(jpg|gif|png)$/.test(this.href); }).attr('rel','popup

[jQuery] Re: Select attribute by checking more than one value

2008-05-24 Thread Wizzud
jQuery('.entry a:not(.download):has( img ) .filter(function(){ return /\.(jpg|gif|png)$/.test(this.ref); }).attr('rel','popupgallery').addClass('something'); On May 24, 12:55 am, leggo-my-eggo <[EMAIL PROTECTED]> wrote: > Hi, I'm new here, so forgive me if I'm missing something obvious, or >