Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #19393
| From | x@x.com (znôrt) |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Based on its src value, find an image and assign an ID? |
| Date | 2013-04-21 00:56 +0200 |
| Organization | love&happiness |
| Message-ID | <87li8cerq8.fsf@smoothskuarematr.ix_> (permalink) |
| References | <kkv0sq$8mp$1@news.albasani.net> |
Tuxedo <tuxedo@mailinator.com> writes:
> Is this possible? If so, what is the most direct way?
$('img[src="http://userserve-ak.last.fm/serve/_/4786926/Frank+Zappa+1205265200371.gif"]').attr('id','zappa');
http://jsfiddle.net/2c2Mh/
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Based on its src value, find an image and assign an ID? Tuxedo <tuxedo@mailinator.com> - 2013-04-20 23:21 +0200
Re: Based on its src value, find an image and assign an ID? Stefan Weiss <krewecherl@gmail.com> - 2013-04-20 23:42 +0200
Re: Based on its src value, find an image and assign an ID? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-21 00:22 +0200
Re: Based on its src value, find an image and assign an ID? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-21 00:36 +0200
Re: Based on its src value, find an image and assign an ID? Stefan Weiss <krewecherl@gmail.com> - 2013-04-21 00:52 +0200
Re: Based on its src value, find an image and assign an ID? Scott Sauyet <scott.sauyet@gmail.com> - 2013-04-20 17:20 -0700
Re: Based on its src value, find an image and assign an ID? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-21 11:09 +0200
Re: Based on its src value, find an image and assign an ID? Scott Sauyet <scott.sauyet@gmail.com> - 2013-04-23 06:32 -0700
Re: Based on its src value, find an image and assign an ID? x@x.com (znôrt) - 2013-04-21 00:56 +0200
Re: Based on its src value, find an image and assign an ID? x@x.com (znôrt) - 2013-04-21 00:59 +0200
csiph-web