[jQuery] Re: Find and replace image problem

2009-03-18 Thread Chris K
As I said that doesn't work. On Mar 18, 11:48 am, James wrote: > var new_src = $(this).attr("src").replace(imagename, fileObj.name); > > will store the String value of that into new_src, so you just set your > image source to it. > > $(this).attr("src"

[jQuery] Find and replace image problem

2009-03-18 Thread Chris K
I have the image name in a variable and want to replace it but not sure how to do this. Currently I can replace the image src with: var new_src = $(this).attr("src").replace(/ship.png$/i, fileObj.name); I want to do something like this (which doesn't work): var new_src = $(this).attr("src").repl

[jQuery] Custom Error placement with jQuery form validation??

2009-03-16 Thread Chris K
I am using jQuery form validation and it works great, but it displays the error message to the right of each form element. I actually want the error message for each form element to be in a specific div that I customize. For example: If anyone can tell me how you would do that it would be gre