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
Aaron Heimlich wrote:
Attribute selectors always begin with @[1] and I added quotes around
"images/m" just for safety, as jQuery sometimes has issues when you
don't use them.
I always forget the damn "@"! I don't think the quotes are necessary,
but they can't hurt, although allowing them hu
On 5/3/07, Scott Sauyet <[EMAIL PROTECTED]> wrote:
I'm not sure, but I think this would do it:
$("img[src*=images/m]").eq(0).addClass("newimage");
Very close, Scott. It should be:
$("[EMAIL PROTECTED]'images/m']").eq(0).addClass("newimage");
Attribute selectors always begin with @[1]
millionmonkey wrote:
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?
s = $("img").eq(0).attr("src")
if (s.search("images/m")>0) {
$("img").eq(0).addClass("newimage")
}
I'm not sure, but I t
4 matches
Mail list logo