Thanks, Josh, that's essentially what I'd been trying, but it wasn't
working.  Turns out the function was executing before the validation script
finished its work, so the src attribute had not been updated before the
second function fired.  I'm still trying to sort that out.

 

Anyway, thanks for the tip.

 

  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Josh Nathanson
Sent: Tuesday, March 06, 2007 12:43 PM
To: jQuery Discussion.
Subject: Re: [jQuery] finding an image by src attribute

 

$("[EMAIL PROTECTED]")

 

Should return the elements you seek.

 

-- Josh

 

 

----- Original Message ----- 

From: Paul <mailto:[EMAIL PROTECTED]>  

To: 'jQuery <mailto:discuss@jquery.com>  Discussion.' 

Sent: Tuesday, March 06, 2007 10:34 AM

Subject: [jQuery] finding an image by src attribute

 

This is probably easy, but it's my first attempt so I'm not sure where to
begin.

 

I have a series of images which all have the class "ico".  Within that
collection of images I need to find any with src set to "ico-fail.png".  How
can I efficiently search through the images to determine if any have this
attribute? 

 

Thanks!

 

Paul


  _____  


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to