开发者

Use jQuery to get src="x" value [duplicate]

This question already ha开发者_如何学Gos answers here: Closed 10 years ago.

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"));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜