[jQuery] can't get an attribute from an appended <img>
hi, this is my first post on the group
so,
i have a form through wich i'm sending an ajax reques to a php script
and get the result back.
to be more clear i write a text into an input box then i submit it to
a php file where I make an image from the text using gd2. Then I send
back the path to the image.
I use this path so i can add images to a div. add the images to the
div i'm using append(). The ids of the images are dynamicly made.
all ok until this point
what I want to do is, when I clikc an image to optain it's id (in an
alert for example)
For some reason I get the ids only for the elements that were
originaly in the page, but not for the appended imgs
Thanks,
Radu