开发者

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

开发者 https://www.devze.com 2023-01-02 13:04 出处:网络
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?
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

精彩评论

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