Trouble accessing .attr() when creating new dom elements (using .live())

I’m trying to access the id of an image I create using .live().

When creating the image I give it an id however, I am unable to retrieve that idea later using .attr()

Anyone know a solution?

sorry - i was using jquery — I was able to make it work though by simplifying the problem and solving it, and then working it in.

Presumably you are using a JavaScript library that contains those commands but you haven’t said which library you are using.