I am not 100% sure, but I will not
$(data)
create a jquery object with a DOM for this data, nowhere connected? Or, if it is already being parsed as a DOM, you can simply switch to $ ("# myImg", data) or any other selector according to your needs.
EDIT
Rereading your question, it seems that your βdataβ is already a DOM, which means you can just go (if your DOM has only img, otherwise you will need a more accurate selector)
$("img", data).attr ("src")
if you want to access the src attribute. If your data is just text, this will probably work
$("img", $(data)).attr ("src")
falstro Apr 01 '09 at 9:08 2009-04-01 09:08
source share