Possible Duplicate:
How, using jQuery, might I obtain the src attribute of a HTML img element?
How can I use jQuery to fetch the SRC attribute of a value?
$(el).attr("src")
alert($("#elem").attr("src"));
Possible Duplicate:
How, using jQuery, might I obtain the src attribute of a HTML img element?
How can I use jQuery to fetch the SRC attribute of a value?
$(el).attr("src")
alert($("#elem").attr("src"));
精彩评论