jquery Ajax problem. Can't have a working html input image.
Hi, I currently have a problem. I use jquery ajax to grab html code from a php file. This html code contains a input image that I use as a icon that when clicked should use a ajax jquery call and grab new html and inject it in the same place.
The current problem is that when I inject the html from the ajax call the input image won't work. When you click on it I see a error in the firefox bug debugger that says function name () is not defined. Yet in that same html code that been injected does have a javascript code that has that function. I then decided to take that code and put it on the main page with the .live() function and it still dosen't work.
For some reason the javascript dosen't get runned or looked at even thought I have the document ready function and have the javascript code inside that.
Any ideas what I can do? I want to know what I can do to get the javascript seen and used by the injected html code that used the jquery ajax function.