[jQuery] Re: replace not working...

2007-05-08 Thread Equand
thank you! On May 9, 3:33 am, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote: > On 5/8/07, Equand <[EMAIL PROTECTED]> wrote: > > > $("img", "#preview").attr("src").replace(/\?.*$/g) > > what's wrong with this? > > i try to strip of all text after ? and the ? > > replace() returns the modified str

[jQuery] Re: replace not working...

2007-05-08 Thread Aaron Heimlich
On 5/8/07, Equand <[EMAIL PROTECTED]> wrote: $("img", "#preview").attr("src").replace(/\?.*$/g) what's wrong with this? i try to strip of all text after ? and the ? replace() returns the modified string instead of directly modifying the original one (any method that changes a string in s