Thanks Aaron and Scott - that works perfectly.

And Aaron, thanks for the link - I had looked at that area but didn't
connect the dots. This opens up a lot for me.

thanks again

George

On May 3, 3:01 pm, millionmonkey <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> This works - but I was wondering if there is a cleaner more jquery way
> to do the same thing?  Perhpas there is a selector that I missed in
> the docs?
>
> $(function() {
>
> s = $("img").eq(0).attr("src")
> if (s.search("images/m")>0) {
>   $("img").eq(0).addClass("newimage")
>
> }
> });
>
> tia,
>
> George

Reply via email to