Hi stilfx,
This isn't really a jquery problem, however
try this
$("img")
.each(function() {
this.src = this.src.split("_thumb.").join(".");
alert(this.src)
});
});
Or you could use regex
(You won't need the alert.)
Ant
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of stilfx
Sent: 30 October 2008 21:04
To: jQuery Development
Subject: [jquery-dev] edit url
looking to kill _thumb in an image src string using jquery
effectively making
<img src="image_thumb.jpg" />
to this
<img src="image.jpg" />
Any help is appreciated!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---